How to start a script using cron every hour?

link|improve this question
feedback

2 Answers

Put your script in /etc/cron.hourly.

link|improve this answer
0 */1 * * * ~~ maybe? – Mrsubuntus Apr 6 '11 at 0:35
1  
Nope, 0 * * * * or @hourly or like I said, put it in your cron.hourly directory. – gravyface Apr 6 '11 at 0:44
but it will work in ubuntu? i'll try it tomorrow, thx ;] – Mrsubuntus Apr 6 '11 at 0:45
1  
Also, make sure your script file name does not contain a period (.) - see ubuntuforums.org/showthread.php?t=1692253 – jwoolard Apr 6 '11 at 0:52
yes it works in Ubuntu. – gravyface Apr 6 '11 at 1:03
feedback

0 * * * * should work and will run at every 1 hour

0 1 * * * will run at 1 AM in night every day..

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.