in reply to Re: Perl script runs through Cron but does not generate files
in thread Perl script runs through Cron but does not generate files

There are many possible points of failure. Brief list of things to check:

1. in your script, do you chdir to the directory where you need the files before you download them? If that's missing, you need to chdir first.

2. if you chdir before ftp but the files are not there, then printing current working directory as suggested above would be helpful.

3. make sure you handle errors properly. Use absolute paths for your log files where you log the errors. Check all your operations for errors, check file sizes, etc.

  • Comment on Re^2: Perl script runs through Cron but does not generate files