cron issues with perl script

bashy

Verified User
Joined
Jul 21, 2006
Messages
73
Hi

I am having issues setting up cron to run a perl script
I am using the cron option in DA and not the command line
I keep getting

Code:
WU-forecast.pl V1.00 - 27-Feb-2007
..unable to open usr/home/*****/domains/bashys-place.com/weather/cranfield/forecast-5day.htm: No such file or directory

I have tried 3 diferent command as below

Code:
/home/*****/public_html/weather/cranfield/WU-forecast.pl
Code:
/usr/local/bin/perl -f /home/*****/public_html/weather/cranfield/WU-forecast.pl
Code:
/usr/bin/perl /home/*****/public_html/weather/cranfield/WU-forecast.pl

None of the above work, can anyone advise a numpty please?
 
..unable to open usr/home/*****/domains/bashys-place.com/weather/cranfield/forecast-5day.htm: No such file or directory

looks like a type error in your script. should be /usr/home/***/etc.. not usr/home. It's looking for that in the relative (current/working) directory, not absolutely.
 
Cheers for the reply Dan
It was also missing the public_html part as well, thanks again
 
Last edited:
Back
Top