[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] setting up a cronjob for running a php file
- Subject: Re: [cobalt-users] setting up a cronjob for running a php file
- From: "Mark S Burgunder" <maillist@xxxxxxxxxx>
- Date: Thu Feb 14 16:15:08 2002
- Organization: LUE Enterprises Pty Ltd - www.lue.au.com
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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