PDA

View Full Version : cron problems



enuro12
11-17-2008, 09:31 AM
I setup a cron job. I do not know if i did it properly due to the fact it is my first.

It is a .php script i currently run manually. I just want it to run every 10min automatically.

My First Attempt:
/home2/MyUserName/public_html/MySubFolder/MyPhPFile.php

My Second Attempt:
wget -q -O /dev/null http://www.MyDomain.net/MyPhPFile.php

Here are the error messages:
First:
/bin/sh: /home2/MyUserName/public_html/MySubFolder/MyPhPFile.php: Permission denied

Second:
I don't get any error. IT just doesn't do anything i guess.

r2b2
11-17-2008, 01:46 PM
Try removing the -O /dev/null part of your second attempt - this way you should get some output that might help in debugging the issue...

Oh and judging by the first statement, your second statement should refer to http://www.MyDomain.net/MySubFolder/MyPhPFile.php

sjlplat
11-17-2008, 11:49 PM
Try this:


/usr/bin/php -q /home2/MyUserName/public_html/MySubFolder/MyPhPFile.php