CronJob


#1

Hello, I am trying to run a cronjob.php but i keep getting errors and I feel that the path is the issue can you please help in getting the path right.
This is where the file is placed.
home/username/domains.com/cronjob_v/cronjob.php

Help in this regard is deeply appreciated thank you.

I tried the following paths but nothing seems to work.
sh: /usr/local/php5/bin/php/home/username/domains.com/cronjob_v/cronjob.php:
Message- Not a directory

sh: /usr/bin/php/usr/home/username/domains.com/cronjob_v/cronjob.php:
Message- No such file or directory

sh: /usr/local/bin/php5/home/username/domains.com/cronjob_v/cronjob.php: No such file or directory


#2

You need to tell it to run PHP, leave a space, then tell PHP what script to run:

/usr/local/php5/bin/php /home/username/domains.com/cronjob_v/cronjob.php

-Scott