Forum Moderators: phranque

Message Too Old, No Replies

Setting up a cron job

         

shabda

6:13 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



I have a php script which I want to call periodically. So i set up a cron job with following parameters
wget -o [path...] now. But the job is not running. Can this be that wget is not available on my servers?

Nutter

7:19 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



Is it a local file? If so you may be able to do 'php -q /path/to/file.php' depending on how PHP was installed.

shabda

6:29 am on Mar 30, 2006 (gmt 0)

10+ Year Member



What do I do if PHP is not available as CLI? I know that the cron job is not running. Shhould I try lynx instead of wget?

Nutter

4:52 pm on Mar 30, 2006 (gmt 0)

10+ Year Member



I'm thinking you'll actually need to access it through the web to get it to run. So, wget [localhost...] instead of what you listed above.

Can you get to a command line? If so, what error do you get when you try to run that command?