码迷,mamicode.com
首页 > 系统相关 > 详细

linux任务计划cron

时间:2018-01-23 20:25:05      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:分享   csharp   文件   highlight   sunday   ima   sha   use   body   

linux任务计划cron

技术分享图片

1.crontab命令任务计划配置文件

[root@bogon ~]# cat /etc/crontab 
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

# For details see man 4 crontabs

# 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

[root@bogon ~]# 

2.编辑计划任务crontab -e

[root@bogon ~]# crontab -e

  

 

linux任务计划cron

标签:分享   csharp   文件   highlight   sunday   ima   sha   use   body   

原文地址:https://www.cnblogs.com/sunyujun/p/8337329.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!