免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2192 | 回复: 4
打印 上一主题 下一主题

大家帮忙看看这个crontab的问题在哪!!谢谢! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-16 08:25 |只看该作者 |倒序浏览
HP-UNIX上两个调度:
hbcj2:[/]#crontab -l
0  7 * * * /opt/cj/probe/startallalarm.sh
0  18 * * * /opt/cj/probe/stopallalarm.sh

但是晚上18点的这个执行了,早上7点的没有执行,请教问题在哪??谢谢了

man crontab
Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003

crontab(1)                                                       crontab(1)

           minute         The minute of the hour, 0-59

           hour           The hour of the day, 0-23

           monthday       The day of the month, 1-31

           month          The month of the year, 1-12

           weekday        The day of the week, 0-6, 0=Sunday

      Each pattern can be either an asterisk (*), meaning all legal values,
      or a list of elements separated by commas.  An element is either a
      number in the ranges shown above, or two numbers in the range
      separated by a hyphen (meaning an inclusive range).  Note that the
      specification of days can be made in two fields: monthday and weekday.
      If both are specified in an entry, they are cumulative.  For example,

           0   0   1,15   *   1   command

论坛徽章:
0
2 [报告]
发表于 2008-08-16 15:18 |只看该作者
startallalarm.sh
检查环境变量,或者使用绝对路径!

论坛徽章:
0
3 [报告]
发表于 2008-08-17 12:33 |只看该作者
你看看是否有X权限。:wink:

论坛徽章:
0
4 [报告]
发表于 2008-08-17 20:39 |只看该作者
手动执行看看

论坛徽章:
0
5 [报告]
发表于 2008-08-18 09:04 |只看该作者
文件属性属主
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP