papaface Posted December 10, 2007 Share Posted December 10, 2007 Hello, Title should comman'd' I have cd /var/www/vhosts/****/httpdocs/templates/****/**.php; /usr/bin/php -q cron.php > /dev/null At the moment to run my file located at /var/www/vhosts/****/httpdocs/templates/****/**.php The file location is correct but it doesnt seem to run the cron job. Can anyone help? Quote Link to comment Share on other sites More sharing options...
trq Posted December 11, 2007 Share Posted December 11, 2007 Sorry, but none of that makes much sense. All cron expects is the command (php) followed by any arguments. Of course you can pipe the output to wherever, but its not usually needed as no one is there to see it anyway. eg; (im guessing what you actually want) /usr/bin/php -q /var/www/vhosts/****/httpdocs/templates/****/cron.php Quote Link to comment Share on other sites More sharing options...
papaface Posted December 11, 2007 Author Share Posted December 11, 2007 Sorry if it didnt make sense. Is this correct to run the location every minute? http://img266.imageshack.us/img266/7913/ffsqe0.jpg Quote Link to comment Share on other sites More sharing options...
papaface Posted December 11, 2007 Author Share Posted December 11, 2007 Okay, that didnt work. I found out it would be * * * * * instead of 1 * * * * but that doesnt work either. Any ideas? Remember it is Plesk. Quote Link to comment Share on other sites More sharing options...
papaface Posted December 11, 2007 Author Share Posted December 11, 2007 Got it working with curl http://www.example.com/test.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.