步骤如下:
1.在/etc/crontab文件最后添加定时任务并保存,如:
0 10 * * * root /apps/sh/delete100mbigfile.sh(每天10点执行此脚本)
2.service crond restart
步骤如下:
1.在/etc/crontab文件最后添加定时任务并保存,如:
0 10 * * * root /apps/sh/delete100mbigfile.sh(每天10点执行此脚本)
2.service crond restart
本文标题:Linux 定时执行shell脚本
本文链接:https://www.haomeiwen.com/subject/jarewftx.html
网友评论