Hi,
My cron just doesn't work. Here is the command line:
And the result:Code:"/usr/bin/php /home/mkbit/www/ff_stats/analyse/analyse.php"
WTF? Thx.Code:/bin/sh: /usr/bin/php /home/mkbit/www/ff_stats/analyse/analyse.php: No such file or directory
Hi,
My cron just doesn't work. Here is the command line:
And the result:Code:"/usr/bin/php /home/mkbit/www/ff_stats/analyse/analyse.php"
WTF? Thx.Code:/bin/sh: /usr/bin/php /home/mkbit/www/ff_stats/analyse/analyse.php: No such file or directory
try using 'public_html' instead of 'www'
then call 'php' instead of '/usr/bin/php'
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
It still doesn't work...
Do not put in quotes.Code:/usr/local/bin/php /home/mkbit/www/ff_stats/analyse/analyse.php
Make sure /ff_stats/analyse/analyse.php is the correct path.
Try running it from yoursite.com/ff_stats/analyse/analyse.php
Nothing is always absolutely so.
actually, a few months back (don't know if it still applies today), but i was told by a staff member here to use php-cron instead of the standard php binary...
so you would want to useps, www is just a symlink to public_html, so to avoid any possible problems, go w/ the absolute (real) path...Code:php-cron /home/mkbit/public_html/ff_stats/analyse/analyse.phpp
Which server are you on?
If you get it to work, please post here what the problem was. Several people have had problems getting cron jobs to work, yet nobody seems to come back to explain how they got them to work (if they did instead of just giving up).
Nothing is always absolutely so.
Hello, i have the same problem... cron don't work...
my cron line is:
*/10 * * * 0,1,2,3,4,5 wget -O - http://www.mponline.org/xxxx/xxxx.php >> /home/alamar77/cronjobs/log2.log
I don't receive any email, and no error message...:dunno:
Last edited by alamar77; 11-13-2009 at 04:21 AM.
Actually, you don't. OP had extraneous quotes that caused the entire command line to be interpreted as a command name. Generally speaking, you should start a new thread unless you have the exact same problem and a thread doesn't include a resolution.
Test the command line by itself; you'll need to do this somewhere you have shell access (such as your own system).
Note you can specify a range of values using a hyphen:
If you need more help, start a new thread.Code:*/10 * * * 0-5 ...
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.