Cron Job Problems
Hits 4371 | Created 2007-05-17 | Modified 2007-05-17Oh, the irritation of Cron jobs. Written about as if it's simplicity itself in most places, trying to set these up using cpanel on a paid-for-hosting site can be rather tricky. And the cpanel documentation isn't very helpful, basically just informing me that I should be an expert linux user before even thinking about Cron jobs...
So, what's a Cron job, I hear you ask?
It's a task carried out every x minutes, so you could call a page that updates your RSS feed creation automatically every hour, say.
But it is maddening to get it to work. With error messages complaining of missing input files, not found files, permissions errors, etc.
Anyway, for me, this works:
/usr/local/bin/php -q /home/username/public_html/my_file.php
Where username is the username I use to log into control panel.