Boo-urns Posted May 8, 2007 Share Posted May 8, 2007 Hi, I have been searching tutorials and posts about how to do cron jobs, i know how to sorta set it up in cpanel however how would i tell it to execute the php file? When i get the e-mail it says: "/bin/sh: /usr/bin/wget: Permission denied " i do have the permissions at 755 any idea what is wrong? Thanks Corey Quote Link to comment https://forums.phpfreaks.com/topic/50430-solved-newbie-at-cron/ Share on other sites More sharing options...
pocobueno1388 Posted May 8, 2007 Share Posted May 8, 2007 Here is an example of what it should look like: php /home/username/public_html/folder/script.php Quote Link to comment https://forums.phpfreaks.com/topic/50430-solved-newbie-at-cron/#findComment-247729 Share on other sites More sharing options...
trq Posted May 8, 2007 Share Posted May 8, 2007 And here is another. /usr/bin/php /home/username/public_html/folder/script.php You should always use full paths in cron as it has only a limited environment and quite often will not have a $PATH variable defined (cant find programs). Quote Link to comment https://forums.phpfreaks.com/topic/50430-solved-newbie-at-cron/#findComment-247749 Share on other sites More sharing options...
Boo-urns Posted May 8, 2007 Author Share Posted May 8, 2007 hmmm well now i'm getting this: Status: 404 X-Powered-By: PHP/5.1.6 Content-type: text/html No input file specified. The file is uploaded and everything, the php file is just going to go through the member db table and check to see that their account has not expired yet. Quote Link to comment https://forums.phpfreaks.com/topic/50430-solved-newbie-at-cron/#findComment-247815 Share on other sites More sharing options...
jitesh Posted May 8, 2007 Share Posted May 8, 2007 For linux server http://www.scrounge.org/linux/cron.html For windows server create .bat file. Quote Link to comment https://forums.phpfreaks.com/topic/50430-solved-newbie-at-cron/#findComment-247819 Share on other sites More sharing options...
Boo-urns Posted May 8, 2007 Author Share Posted May 8, 2007 That link wouldn't work. Quote Link to comment https://forums.phpfreaks.com/topic/50430-solved-newbie-at-cron/#findComment-247830 Share on other sites More sharing options...
Boo-urns Posted May 9, 2007 Author Share Posted May 9, 2007 I've tried it both ways from thorpe and pocobueno1388 and i get the same error Status: 404 X-Powered-By: PHP/5.1.6 Content-type: text/html No input file specified. I also tried it through the browser and it worked properly. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/50430-solved-newbie-at-cron/#findComment-248632 Share on other sites More sharing options...
pocobueno1388 Posted May 9, 2007 Share Posted May 9, 2007 There might be something wrong with you path [the way your typing it]. Show us what you are putting. Quote Link to comment https://forums.phpfreaks.com/topic/50430-solved-newbie-at-cron/#findComment-248662 Share on other sites More sharing options...
Boo-urns Posted May 9, 2007 Author Share Posted May 9, 2007 Ahhh finally thanks everybody, thanks for making me go back and check yet again as i did have a typo :-/ Quote Link to comment https://forums.phpfreaks.com/topic/50430-solved-newbie-at-cron/#findComment-248668 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.