PDA

View Full Version : cron



acemaster
06-03-2008, 01:32 AM
I have the 2 crons set-up up that overlap each other as follows:

*/5 * * * * /usr/cron/cron5.php
00 * * * * /usr/cron/cronNight.php


I have 1, maybe 2 questions depending:

1) Is there a way from the command line to lock the cron5 file so that it will finish doing it's duties before the other cronNight file starts?

2) If not, is downloading a lock file the only way to lock it?

Thanks in advance for the help

pghcollectibles
06-03-2008, 10:13 AM
could cron5 do an include(cronNight.php) at the end then you wouldnt need both crons. thats just a guess i will tell you i dont know anything about cron jobs yet.

acemaster
06-03-2008, 01:40 PM
I was thinking my final solution was going to just be one single cron file that directs everything according to the time. But if anyone knows a quick command it would be very useful to me.