Help - Search - Members - Calendar
Full Version: cron job for every 30 min
The Planet Forums > Operating Systems > Red Hat Linux
braun
Hi,

I want to run a cron job for every 30 min on my server

0/30 * * * * php /var/www/pathtoscript.php

Is the above syntax right?
alden
QUOTE (braun @ Dec 4 2007, 04:37 AM) *
Hi,

I want to run a cron job for every 30 min on my server

0/30 * * * * php /var/www/pathtoscript.php

Is the above syntax right?


I believe it should be */30 or 0,30

--Alden
eth00
*/30 says every 30 minutes based on when the cron deamon run time.

0.30 says at 0 and 30 minutes past every hour.


They basically do the same thing but 0,30 gives you a lot more control of when hey exactly run.
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.