Help - Search - Members - Calendar
Full Version: CronJob - how to do this...
The Planet Forums > Control Panels > Other
Gasper
I'd like to run two scripts every day on the same hour, but the second script should be executed a minute after the first one.

Is this cronjob correct?

0 0 * * * * first_script.cgi

1 0 * * * * second_script.cgi



They should run everyday at 12am/midnight.. the second one 12.01.
klaude
You've got one too many *'s in there.

Crons have the format: minute, hour, day of the month, month, day of the week. Also, put the full path to the command you're running in your contrab. e.g:

CODE
0 0 * * * /path/to/first_script.cgi

1 0 * * * /path/to/second_script.cgi
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.