Cron job for Perl scripts

mapt

Verified User
Joined
Mar 6, 2008
Messages
5
Hello,

I am completely new on DA, was using Plesk earlier... Ok, here are some questions about cron for PERL scripts at the user level.

1- I have done so that perl scripts can be run from any directory, but MUST the .pl scripts be in the cgi-bin directory to be run in CRON?

2- How in DA can I setup the email address where I want to receive the cron result?

3- How can I see that the cron task is working on the server?

4- Where is the cronn log file (user level for a domain)

3- Well, all these questions because my cron, are not executed. They have the 755 permission, are in the cgi-bin (But I tried outside too), work if I call them manually.

Here is a DA entry for a cron:

*/5 * * * * /home/[USERNAME]/public_html/cgi-bin/cron_xxx.pl

(to run this one every 5 minutes)

Is there an error in the script location? DA suggested /home/[USERNAME] and I just added the next path.

Currently, the script is not executed, and I don't receive any email about the cron.

Thank you for your help!
 
What does the cron log say?

Try this yet?

Code:
*/5 * * * * /path/to/perl /home/[USERNAME]/public_html/cgi-bin/cron_xxx.pl
 
Well it is working now, despite I did not change anything! Strange. No reboot, nothing. Didn't work 2 hours, now all is fine... Well, let's see :)
 
Back
Top