免费注册 查看新帖 |

Chinaunix

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

[SOLARIS]crontab [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-06-25 16:49 |只看该作者 |倒序浏览
请问如何在SOLARIS下设置crontab
要求:每隔5分钟执行一次

论坛徽章:
0
2 [报告]
发表于 2002-06-25 17:49 |只看该作者
i think the task can not be set in crontab, because you know the mininum is that task can be runned everyday. maybe you can set up at other ways instead of  crontab. BTW, what task do you want to do every 5minutes?

论坛徽章:
0
3 [报告]
发表于 2002-06-26 15:47 |只看该作者

WHY?

最初由 grace_limi 发布
[B]i think the task can not be set in crontab, because you know the mininum is that task can be runned everyday. maybe you can set up at other ways instead of  crontab. BTW, what task do you want to do every 5minutes? [/B]


可以做呀,在分钟那个域给出0,5,10,15,20...就可以,只不过是否有必要的问题。

论坛徽章:
0
4 [报告]
发表于 2002-06-27 18:42 |只看该作者
man crontab
......
You must specify a value for each field. Except for the command field, these
fields can contain the following:

  o A number in the specified range. To run a command in May, specify 5 in the
    month field.
  o Two numbers separated by a dash to indicate an inclusive range. To run a cron
    job on Tuesday through Friday, place 2-5 in the weekday field.
  o A list of numbers separated by commas. To run a command on the first and last
    day of January, you would specify 1,31 in the day_of_month field.
  o An * (asterisk), meaning all allowed values. To run a job every hour, specify
    an asterisk in the hour field.
...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP