Thread: CRON Question
View Single Post
Old 02-22-2011, 06:53 PM  
AzteK
Confirmed User
 
AzteK's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: Northern Cali, USA
Posts: 3,444
Quote:
Originally Posted by signupdamnit View Post
And to make it more clear if you were just wanting a different script for each hour of the day I guess you could do something like:

0 1 * * * /home/user/jim/test.pl >/dev/null 2>&1
0 2 * * * /home/user/jim/test2.pl >/dev/null 2>&1
0 3 * * * /home/user/jim/test3.pl >/dev/null 2>&1

...

0 23 * * * /home/user/jim/test23.pl >/dev/null 2>&1

The ">/dev/null 2>&1" at the end says to discard the output so that it doesn't email it to you for each hour.

Hope this helps.
That's exactly what I want it to do, to run different scripts every hour of the day. I'll give it a shot. Thank you!
AzteK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote