Jump to content

Recommended Posts

Posted

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

Posted

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 ?

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...