crontab 管理指定用户的定时任务

创建用户定时任务文件

touch /var/spool/cron/target_user

crontab -u target_user /var/spool/cron/target_user

编辑用户的定时任务

crontab -u target_uesr -e

一些定时任务配置样例

*/1 * * * * bash /home/script/target_script.sh // 每分钟执行
0   1 * * * bash /home/script/target_script.sh // 每天一点钟执行

posted @ 2016-06-22 11:16  卜木  阅读(983)  评论(0编辑  收藏  举报