cancel
Showing results for 
Search instead for 
Did you mean: 

Perl and Cron...

N/A

Perl and Cron...

Hi all.
I wonder if you can help me...

I'm trying to run a perl file to copy some XML files from a site to my CGI area.

The crontab entry i have entrered is
MAILTO=me@stuhome.force9.co.uk

0 9 * * * /files/home2/stuhome/xml/download.pl


within that perl file it specifies the full path (as above) to save the files to but when it runs all I get in my email is
/files/home2/stuhome/download.pl: permission denied


If I logon to the CGI server via TelNet and run the download.pl file myself it runs successfully.

So... I have a couple of questions.

1) am I using the correct path for a Perl file?
2) does the Perl file need to be in the cgi-bin directory?
3) am I just missing something completely?
4) does the Crontab "user" have write access?

Thanks very much for your help.
This is what the site the job is for.... This is for this site PC Format BOINC

Stuart
1 REPLY
N/A

Perl and Cron...

I usually use
/usr/bin/perl /files/homex/username/perlscript.pl
in Cron Jobs, you could try that?