cancel
Showing results for 
Search instead for 
Did you mean: 

help with cron

N/A

help with cron

I am trying to set up cron to backup my cgi-bin but can't get it to work.

I have loaded AWScron.tab into root of cgi-bin, activated in telnet by crontab AWScron.tab, and checked it by crontab -l, but no go.

The file AWScron.tab is:-
MAILTO=cron@wrengco.f9.co.uk
10 * * * * /files/home2/wrengco/cgi-bin/AWSbackup/AWSbackup.pl (just for test purposes)

The email report keeps saying:-
/bin/sh: line 1: /files/home2/wrengco/cgi-bin/AWSbackup/AWSbackup.pl
: No such file or directory

but there is!

Any help appreciated (I assume that cron must be operational)
Dave
4 REPLIES
Community Veteran
Posts: 4,729
Registered: 04-04-2007

help with cron

cron is running.
This page is updated every minute, if you wish to check;
http://ccgi.chillypenguin.plus.com/lastcron.txt

Try adding a blank line to the end of your crontab.

Chilly
N/A

help with cron

Tried spaces, spare lines, changing all names to lowercase but it still comes up with same -
"...../bin/sh: line 1: /files/home2/wrengco/cgi-bin/awsbackup/awsbackup.pl
: No such file or directory....."

The mailto works ok.

Do permissions affect operation or have I not got the path correct? Any help greatly appreciated

Dave
Community Veteran
Posts: 4,729
Registered: 04-04-2007

help with cron

I think the problem here is so blindingly obvious that I can not see it!

Could I ask that you post up (or PM) me the first few line of your script.

Another suggestion would be to try it outside the cgi-bin directory.

Also I note that the script ends “pl” which is normal used for perl, but error on the first line references “/bin/sh”.

Chilly
N/A

help with cron

Tried most things but still getting same error message. Back to basics!

I am placing awscron.tab in root dir i.e. higher than cgi-bin with permission 750 - is that correct?

The awsbackup.pl is permed 750 - is that correct?

Is the cron file formatted correctly?

Someone please help
Dave