Linux计划任务图文详解


计划任务: 1.   系统计划任务: [root@junjie ~]# vim /etc/crontab     Examples: "1,2,5,9", "0-4,8-12",*,"*/2". [root@junjie ~]# cd /etc/cron. cron.d/       cron.deny     cron.monthly/ cron.daily/   cron.hourly/ cron.weekly/ 系统计划任务实现步骤: 任务(可执行脚本)à编辑任务表格(/etc/crontab) 2.   个人计划任务: crontab用法:        crontab [-u user] file        crontab [-u user] [-l查看 | -r删除 | -e编辑] [-i交互] [-s] 3.调度进程来稍后执行     一次性作业使用at,重复性作业使用crontab     没有被重导向的输出会被邮寄给用户     根用户能够修改其它用户的作业     at时间:MMDDYY or MM/DD/YY or DD.MM.YY HH:MM     at 4pm + 3 days          at 10am Jul 31            at now +5minutes
  • 1
  • 2
  • 下一页

相关内容