Re: execute php script with crontab
| From: | Jason Wong | Date: | Mon, 19 Jan 2004 04:55:53 +0000 |
| Subject: | Re: execute php script with crontab | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174989@lists.php.net to get a copy of this message | ||
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
*/