cron相关

https://www.express.nec.co.jp/linux/distributions/knowledge/system/crond.html

在/etc/cron.daily/目录下创建两个测试脚本
test.sh
test1.sh
备注:chmod +x test.sh test1.sh

编辑/etc/crontab
50 16 * * * root run-parts /etc/cron.daily

16:50分后,cron.daily下的脚本都被成功执行。如果不使用run-parts就不能运行一个文件夹,必须执行脚本的详细路径

猜你喜欢

转载自baiyunliu.iteye.com/blog/2370459