How to start a script using cron
every hour?
Asked
Active
Viewed 7.3k times
2 Answers
15
0 * * * * should work and will run at every 1 hour
0 1 * * * will run at 1 AM in night every day..

swd
- 173
- 8
6
Put your script in /etc/cron.hourly.

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