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

linux新建定时任务

时间:2017-05-11 12:22:02      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:表示   命令   nbsp   div   linu   aix   bsp   command   roc   

linux/aix 使用crontab -e命令,再最后一行加入改功能脚本,例如:
10 12 * * * sh  /oracle/orabak/orabak.sh
关于linux下crontab的使用
 minute hour day month dayofweek command 
    minute - 从0到59的整数 
    hour - 从0到23的整数 
    day - 从1到31的整数 (必须是指定月份的有效日期)
    month - 从1到12的整数 (或如Jan或Feb简写的月份)
    dayofweek - 从0到7的整数,0或7用来描述周日 (或用Sun或Mon简写来表示)
    command - 需要执行的命令(可用as ls /proc >> /tmp/proc或 执行自定义脚本的命令) 

linux新建定时任务

标签:表示   命令   nbsp   div   linu   aix   bsp   command   roc   

原文地址:http://www.cnblogs.com/1234qq/p/6840302.html

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