Re: execute php script with crontab

From: Date: Mon, 19 Jan 2004 13:14:43 +0000
Subject: Re: execute php script with crontab
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175013@lists.php.net to get a copy of this message
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" <tukang_minta@yahoo.com> To: "Jason Wong" <php-general@gremlins.biz> Cc: <php-general@lists.php.net> 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 <php-general@gremlins.biz> 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

« previous php.general (#175013) next »