russellmcox Posted September 14, 2008 Posted September 14, 2008 My programmers are trying to get a CRON job to run. I have executed the CRON job by addressing it directly @ http://serverXXXX/~xxxxx/cron.php or http://www.XXXXXXXXX/cron.php It is currently producing some kind of a script error as you will see if you execute it. The error notwithstanding, they have asked me to seek assistance on how to get it to run periodically. They have access to my account and cpanel. I can set the timer for every minute (for testing) and they use the following url in setting up the job: php /home/XXXXXXXXXXXX/public_html/xxxxxx/cron.php I don't have much experience at this, but I would have used the following: http://serverXXXXXX/~xxxxxxx/cron.php But, neither url seems to work. I set the email address to my account, but I receive nothing, thus I'm unable to determine if it is working. It is supposed to perform some action on my web site (under development). But since we're debugging a script, I can't tell if it performs the desired action, except for the obvious error it shows if you execute it manually. Any thoughts before I create a Helpdesk Ticket? Regards, Russell Cox Quote
TCH-Alex Posted September 14, 2008 Posted September 14, 2008 I 've set the cron job for your account. You can see that on cPanel => Cron Jobs option However, you may check the cron script with the developer as it is throwing errors. Quote
russellmcox Posted September 14, 2008 Author Posted September 14, 2008 I 've set the cron job for your account. You can see that on cPanel => Cron Jobs optionHowever, you may check the cron script with the developer as it is throwing errors. How do get the CRON job to email me optionally to report success? Regards, Russell Cox Quote
TCH-Bruce Posted September 14, 2008 Posted September 14, 2008 The script you are running as a cron job would have to be written to send you an email on success. Cron will only report errors. Quote
russellmcox Posted September 16, 2008 Author Posted September 16, 2008 I 've set the cron job for your account. You can see that on cPanel => Cron Jobs optionHowever, you may check the cron script with the developer as it is throwing errors. While I can attest to the fact that the CRON Job is running, based on what the script is doing, darned if I can see what you did to change the way I had it specified. It would help in the future if I understood. Regards, Russell Cox Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.