6

This question already has an answer here:

How to start a script using cron every hour?

marked as duplicate by Michael Hampton Aug 25 '14 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.

12

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

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

5

Put your script in /etc/cron.hourly.

  • 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

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