Forum Moderators: bakedjake

Message Too Old, No Replies

Can't get Cron Job to Work

         

Emperor

12:57 am on Jul 9, 2005 (gmt 0)

10+ Year Member



Hi guys,

My crontab file looks like this:

* * * * * php /www/myusername/mysite.com/cronjobs/cron.php

...and it doesn't work. I went to the directory that contains cron.php and did a 'pwd' on it to get the path.

Maybe I have to set the php path also, if so how do I get it? Do I need the $PATH variables at the top of the crontab file? Man, this is driving me crazy.

I'm using PuTTY with a virtual hosting account.

Thanks.

Emperor

3:14 am on Jul 9, 2005 (gmt 0)

10+ Year Member



Yay, I got it to work.

n19ht

1:59 pm on Jul 19, 2005 (gmt 0)

10+ Year Member



you can get paths of binaries with the following command:

$ which php 
/usr/bin/php