Crontab条目-每2分钟-Solaris 10不起作用! [英] Crontab entry -every 2 min -Solaris 10 not working !
问题描述
我正在尝试每2分钟运行一个过程.虽然手动作业正在运行,但是如果我创建crontab条目,则它没有运行.条目如下所示
2 * * * */usr/StartDip.sh> /tmp/otpt
如果我尝试以*/2 * * * *给出,则给出错误为无法创建条目"
如何在Solaris-10中创建每2分钟运行一次的条目?
谢谢,
Pattabi.
Hi,
I am trying to run a process for every 2 min. Though manually job is running, if I create crontab entry it is not running.Entry is as below
2 * * * * /usr/StartDip.sh > /tmp/otpt
If I try to give as */2 * * * * , it is giving error as "Failed to create entry"
How to create an entry which should run for every 2 min , in Solaris-10?
Thanks,
Pattabi.
推荐答案
cron标签格式如下.
The cron tab format is as folllows.
m(0-59) h(0-23) dom(1-31) m(1-12) dow(0-6) command
并且您遵循的格式对于应该每2分钟运行一次的cron有效.
您可以使用
And the format you are following is valid for a cron that is supposed to run every 2 minute.
for creating a cron you can use
crontab -e
来创建cron,
我很确定.
您的概率可能是由于cron中的某些问题引起的.尝试使用
重新启动cron
which I am pretty sure you know.
Your prob may be caused due to some problem in cron. Try restarting the cron once using
svcadm restart svc:/system/cron
让我知道这些信息是否对您有帮助.
BR//
Harsha
Let me know if this information helped you.
BR//
Harsha
这篇关于Crontab条目-每2分钟-Solaris 10不起作用!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!