Re: execute php script with crontab

From: Date: Mon, 19 Jan 2004 05:29:07 +0000
Subject: Re: execute php script with crontab
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174992@lists.php.net to get a copy of this message
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 (#174992) next »