步驟如下:
1.在/etc/crontab文件最后添加定時(shí)任務(wù)并保存,如:
0 10 * * * root /apps/sh/delete100mbigfile.sh(每天10點(diǎn)執(zhí)行此腳本)
2.service crond restart
步驟如下:
1.在/etc/crontab文件最后添加定時(shí)任務(wù)并保存,如:
0 10 * * * root /apps/sh/delete100mbigfile.sh(每天10點(diǎn)執(zhí)行此腳本)
2.service crond restart