Setting up a cron job
Posted by: -Av
Posted on: 2006-10-08 08:36:00
Hello,
Im trying to make cron run a PHP file every 5 minutes, this is the command im currently trying to use.
MAILTO="myemail@gmail.com"
*/5 * * * * wget http://mysite.com/mail.php
This is the error i am getting in my mailbox
--04:20:59-- http://mysite.com/mail.php
=> `mail.php
'
Resolving mysite.com... 208.113.148.68
Connecting to mysite.com[208.113.148.68]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
04:20:59 ERROR 404: Not Found.
As you can see cron automatically put '
' after the source path, thats why it cant be found. I am suspecting the extra blank line i put in the cron command is causing this, but when i leave the blank line out of it, the cron command does not run at all.
Thanks for any help in advance :)