Cpanel Help Cron job

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
sumeetbiswal
Forum Newbie
Posts: 4
Joined: Tue Feb 28, 2012 3:08 am

Cpanel Help Cron job

Post 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:
User avatar
Celauran
Moderator
Posts: 6425
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Cpanel Help Cron job

Post 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
Post Reply