don't think you're supposed to activate it by perl
the script has the interpretor line in it
change the crontab line to just the path to the script
also, is the script working when run from the shell manually?
DimaYasny
Posting Virtuoso
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89
is the script executable?
DimaYasny
Posting Virtuoso
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89
after some googling, seems like perl scripts have trouble running from crontab.
try to create a bash script which will launch the perl script, and make the bash script run from crontab
DimaYasny
Posting Virtuoso
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89
well it appears cron environment is not the same as the normal environment.
try to run the script with all absolute paths:
/usr/local/bin/perl /rishi/s-branch/perl1/perl/filecomp.pl
DimaYasny
Posting Virtuoso
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89
try to direct output to a logfile, let's see what the error is
DimaYasny
Posting Virtuoso
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89
well, share the solution :)
DimaYasny
Posting Virtuoso
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89
thanks, it's good to know, since I'm switching some of my scripting to perl in a few weeks
cron does run in a different nevironment then the usual shell
DimaYasny
Posting Virtuoso
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89