geogeo Posted May 7, 2005 Posted May 7, 2005 Hi I have been trying to use cron jobs and keep gtting stuck. I use PHP and I just setup a simple script to send a mail. Nothing elaborate, but when I set up the cron job, the message I get is this: No input file specified. I have used the example stated in some other forum postings and have set the line with my cpanel name and the file path. What am I doing wrong. Some help would be greatly appreciated. Thanks. Andy Quote
TCH-Andy Posted May 7, 2005 Posted May 7, 2005 Hi Andy, Welcome to the foums How are you setting the cron job ? /usr/bin/php -q /home/yourcpanelname/path-to-your-script Does the script run OK when run from a browser ? Quote
geogeo Posted May 7, 2005 Author Posted May 7, 2005 Hi Yes, the script runs from the browser OK. I am unsure why it does not work from the cronjob though? Quote
geogeo Posted May 7, 2005 Author Posted May 7, 2005 Hi DOH! I have the cron job working now. I must be a moron, but I just realised that I was actually trying to run the cron job from the wrong cpanel. I have a reseller account with lots of accounts and I realised that i was trying to do it from the main account. Sorry for the confusion. Thanks. Andy Quote
TCH-Don Posted May 7, 2005 Posted May 7, 2005 Welcome to the forum, Andy Glad you got it working. Quote
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.