PDA

View Full Version : Need Help with Cron Job


Emperor
07-08-2005, 08:28 PM
Hi guys,

If I type this in the shell it works fine:

php mysite.com/www/cron/test.php

...but if I have this in my crontab nothing happens:

* * * * * php mysite.com/www/cron/test.php

Is that the way to execute it every minute ? All it does is increment a value in a database for testing purposes.

I'm pretty sure the path in the crontab is wrong but I don't know what to set it to. Also, in the .php file I had an include that didn't work (not found.)

How do I get the paths right ? Today is the first time I used a Unix shell.

Thanks.

laxmisoftware
07-09-2005, 12:34 AM
I will help you to setup everything. Please let me know if you are still looking for help.

Emperor
07-09-2005, 07:04 AM
Thanks for offering to help, I figured it all out and it's working perfectly now.

Take care.