How exactly do the Cron jobs work, I've tried to get them to work using many variations online but none of them work. What's wrong with what I'm using now???
0 * * * * php -f /home/iceman3/public_html/updatestats.php
How exactly do the Cron jobs work, I've tried to get them to work using many variations online but none of them work. What's wrong with what I'm using now???
0 * * * * php -f /home/iceman3/public_html/updatestats.php
is the format I use. That way any output (ie echo commands) or error messages will be added to a log file.Code:/usr/bin/php /home/abc/public_html/test.php >> /home/abc/public_html/testlog.txt 2>&1
Nothing is always absolutely so.
See the newly created cron job page in the X10 wiki for more. Feel free to contribute.
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.