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

The cron job:
* * * * * /usr/bin/wget http://infiniteresponder.mrcomptech.com/sendmails.php
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/infiniteresponder.mrcomptech.com/web/sendmails.php > /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