adriscoll Posted June 17, 2011 Share Posted June 17, 2011 Hello. I have an Apache handler but would prefer to use a wget command to pull a .php file that is scripted to query a database. The php runs correctly but my crontab line of code keeps getting rejected. * * * * * /usr/bin/wget http://www.website.com I have tried it using "" quotes around the url. I have also tried it using -q in between the wget and http lines. Whenever there is a space following the /usr/bin/wget section, I get an error saying that it can't be found. I will contact the hosting provider, but wanted to check here first. Quote Link to comment https://forums.phpfreaks.com/topic/239620-php-crontab/ Share on other sites More sharing options...
dragon_sa Posted June 17, 2011 Share Posted June 17, 2011 perhaps try * * * * * wget "http://www.website.com" otherwise as you said contact the host Quote Link to comment https://forums.phpfreaks.com/topic/239620-php-crontab/#findComment-1230921 Share on other sites More sharing options...
gristoi Posted June 17, 2011 Share Posted June 17, 2011 with wghet you normally dont need the http part. so try wget www.website.com/filename.php Quote Link to comment https://forums.phpfreaks.com/topic/239620-php-crontab/#findComment-1230940 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.