Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How to start a script using cron every hour?

share|improve this question

2 Answers

Put your script in /etc/cron.hourly.

share|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

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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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