Re: Executing CLI scripts as a cron
| From: | James | Date: | Thu, 15 May 2003 20:57:16 +0000 |
| Subject: | Re: Executing CLI scripts as a cron | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147806@lists.php.net to get a copy of this message | ||
Try putting
#!/usr/bin/php in the script and calling it directly.
Also, is it TrafficReports or TrafficReport, your cron is different than the
file from what I can see below.
Make sure you have the permission to run the script, so root doesnt own the
scripts when your cron is only setup under user "joe bloggs".
jim.
"Ron Dyck" <adam@webbtech.net> wrote in message
news:006501c31b22$3433bdb0$8c02a8c0@webbtech...
> 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
> ==============================
>