本文介绍了每天在特定时间执行Shell脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个简单的shell脚本,它仅检查目录的内容,如果白天没有添加任何内容,则将其复制到备份文件夹中. 我想在每天结束时执行此脚本(假设在23:55).
I have a simple shell script that just checks the contents of a directory and if anything was added during the day makes a copy of it to a backup folder. I'd like to execute this script at the end of each day (let's assume at 23:55).
此脚本所在的系统(Debian)始终处于(服务器类型)
The system(Debian) which this scripts reside on it, is always on (kind of server)
我该怎么做?
推荐答案您要使用
crontab -e然后您要添加
55 23 * * * COMMAND TO BE EXECUTED有关更多信息,请参见此
for more info look at this
更多推荐
每天在特定时间执行Shell脚本
发布评论