Could I add a question regarding the cron command?
If you automatically run a php script through the cron command is timeout
taken under account or does it run through the "command line" which is
faster (and timeout is not taken under account?)

Thanks all

Mario
----- Original Message ----- 
From: "rudi" <[EMAIL PROTECTED]>
To: "Jason Wong" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, January 19, 2004 7:29 AM
Subject: Re: [PHP] execute php script with crontab


> Ok, thanks i will check it first. soon i will send mail about it.
>
> Jason Wong <[EMAIL PROTECTED]> wrote:On Monday 19 January 2004
12:01, rudi wrote:
>
> > 01 * * * * root run-parts /usr/bin/php /var/www/html/cron/testcron.php
>
> I believe 'run-parts' takes a directory as argument. Try:
>
> 1 * * * * root /usr/bin/php /var/www/html/cron/testcron.php
>
>
> Also if you have:
>
> #!/usr/bin/php
>
> as the first line in testcron.php (and make it executable) then you can
use
> simply:
>
> 1 * * * * /var/www/html/cron/testcron.php
>
> -- 
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> However the modem comes set from the factory, it will be the WRONG way to
work
> on your machine
> -- Murphy's Laws of BBS'ing n3
> */
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to