Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

How to start a script using cron every hour?

share|improve this question

marked as duplicate by Michael Hampton Aug 25 at 11:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

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

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