[nzlug] cron job

Matt Brown matt at mattb.net.nz
Thu Aug 10 12:28:24 NZST 2006


anru chen wrote:
> hi :
> 
> i have entry in crontab file like below,
> 
> 40 01 * * * php $SITEDIR/addstockall.php start
> 
> so above command should run at 1:40 am , right?

Yes

> but some time, the cron job will run at a laster time, like 9 or 10 am.

Check your syslog is the command actually being triggered by cron?

Are you sure the page isn't also accessible to anyone browsing your site
and is being randomly triggered by Googlebot or some other robot?


-- 
Matt Brown
matt at mattb.net.nz
Mob +64 21 611 544 www.mattb.net.nz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: OpenPGP digital signature
Url : http://www.linux.net.nz/pipermail/nzlug/attachments/20060810/9d44c390/signature.pgp


More information about the NZLUG mailing list