Linux crontab定期执行程序

查看定期服务状态 service crond status

系统任务:编辑/etc/crontab

用户任务:crontab -e,写入命令

crontab -l 列出定时任务

* * * * * /usr/local/hello.sh 分钟 消失 日 月 星期

实例:

* * * * * echo hello >> /usr/local/linux/hello.sh 每分钟写将hello追加到hello.sh中

Reference: http://www.runoob.com/linux/linux-comm-crontab.html

猜你喜欢

转载自blog.csdn.net/weixin_42129080/article/details/80879288