Page 1 of 1

Cpanel Help Cron job

Posted: Tue Mar 13, 2012 2:23 am
by sumeetbiswal
Hi All,
i want to run a file automatically.I have cpanel to set cron job.when i set it to fire in every minute automatically.The command is as below

* * * * * /home/safexbbs/public_html/demo/script/firesms1.php

but it is not being fired.can any body help me and say the reason why it is not being fired even if i put the file in in the specified position as i have mentioned.

:banghead: :banghead: :banghead:

Re: Cpanel Help Cron job

Posted: Tue Mar 13, 2012 5:55 am
by Celauran
If you're running it from CLI, you'll likely need to use the php command before the script path.

Code: Select all

* * * * * php /home/foo/path/to/file.php