View Single Post
Old 26th July 2010, 23:19
MrCompTech MrCompTech is offline
Join Date: Jul 2010
Posts: 92
Thanks: 1
Thanked 20 Times in 9 Posts
Default Solved - Problem getting cron job to run and in need of help

The cron job:
* * * * * /usr/bin/wget
does work!

Thank You!!!!!!!

I thought wget was just an ftp program and thought that after wget downloaded the file then it needs a command processor, in this case since wget is downloading a php script the command processor would be /usr/bin/php.

I don't understand why this works, but it would seem that wget must be more than just an FTP program and has support for php.

In the meantime I had create this cron job, which does work or course but it is being run as root.
* * * * * /usr/bin/php /var/www/ > /dev/null

I prefer putting the cron job in the 'Sites' tab since it's a convenient place to put all cron jobs.

Thanks again Till!
Reply With Quote