FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Cron Jobs Problem.





gerpg
Ok, i have tried all sorts of combinations of cron commands and still can't get it to run..

The only thing i keep getting from the cron is:
Quote:
/bin/sh: line 1: /usr/bin/php: No such file or directory


Iv'e tried using lines like:
Code:
usr/bin/php -q /home/USER/domains/gerpg.com/SCRIPT.php

Code:
usr/bin/php -q /home/USER/domains/gerpg.com/SCRIPT.php > /dev/null

Code:
usr/bin/php -f /home/USER/domains/gerpg.com/SCRIPT.php

Code:
usr/bin/php -f /home/USER/domains/gerpg.com/SCRIPT.php > /dev/null


Is there anything i'm not doing right?

Louis.
gerpg
I found the problem, the line i needed to use was:

Code:
/usr/local/bin/php -q /home/USER/domains/gerpg.com/SCRIPT.php


It needed the 'local' part.

Louis.
Related topics
Cron Jobs
propos des cron jobs
[RESOLVED] cron jobs
Cron jobs
I don't have cron jobs enabled ?
cron jobs
Cron Jobs
Cron Jobs
Cron Jobs
Cron jobs - running a php file
Executing automated tasks without using cron jobs
cron jobs?
Cron Jobs Problem
Cron Jobs
Has anyone installed Moodle successfully?
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.