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

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



Hi Robert
> I want/ need to run the script every 5 minutes.
>
> 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

What I do to run a php script through cron is to actually do a wget on the
script. So I would change your command to:
"wget http://www.domain.com/netstatus/cron_script/cron_script.php
>/dev/null"

Cheers
Mark