首页 > 系统服务 > 详细

linux crontab 命令

时间:2016-05-10 18:12:22      阅读:284      评论:0      收藏:0      [点我收藏+]
#method 1
crontab -e crontab -u root -e #不同用户自己的任务计划 crontab -l #method 2

vim /etc/crontab # Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command to be executed 这个目录下面很多已经存在的系统级别的计划任务 ll /etc/cron* /etc/cron.d ├── 0hourly ├── raid-check └── sysstat /etc/cron.daily ├── cups ├── logrotate ├── makewhatis.cron ├── mlocate.cron └── tmpwatch /etc/cron.deny [error opening dir] /etc/cron.hourly └── 0anacron /etc/cron.monthly /etc/crontab [error opening dir] /etc/cron.weekly

 

技术分享

 

linux crontab 命令

原文:http://www.cnblogs.com/icyy/p/5478658.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!