[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] setting up a cronjob for running a php file



"R. Hamburg (hava.nl)" <user@xxxxxxx> wrote:
> I tried to run it like this within the crontab. However this is not
working
> I get overloaded whith error mails.

If this email doesn't answer your question, you may want to post the email
errors since that would be useful.

> I want/ need to run the script every 5 minutes.

Your cron entry is setup correctly for that.

> This is how I set it up in the crontab:
>
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * *
> /home/sites/www.domain.com/web/netstatus/cron_script/cron_script.php

I assume the 2 lines above are actually on a single line in your crontab
file.  If not, they should be.  Since you're not calling the script from
Apache (you'd use wget, lynx or something similar to run the script) I
assume you have PHP installed as a CGI and you have the shebang line like
#!/usr/local/php/bin/php -q at the top and the script is executable by the
user associated with the crontab entry.  Let us know if that helps.  Post
more info. if it doesn't.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/