Executing CLI scripts as a cron
| From: | Ron Dyck | Date: | Thu, 15 May 2003 20:40:20 +0000 |
| Subject: | Executing CLI scripts as a cron | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-147798@lists.php.net to get a copy of this message | ||
I'm trying to execute multiple php CLI scripts from a cron tab. I've create
a file with something like the following in it:
/usr/local/bin/php -f '/http/www/site1/sh_scripts/TrafficReport'
/usr/local/bin/php -f '/http/www/site2/sh_scripts/TrafficReport'
/usr/local/bin/php -f '/http/www/site3/sh_scripts/TrafficReport'
The file is called: TrafficReports.
When I run it from the command line, it works fine, but when I attempt to do
it with a schedule cron tab, no luck.
Any thoughts.
==============================
Ron Dyck
Webbtech.net
==============================