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

Print out current working directory and you will see where you are unzipping your files:
use Cwd (); print "Current directory: " . Cwd::cwd . "\n";

Replies are listed 'Best First'.
Re^2: Perl script runs through Cron but does not generate files
by hotpelmen (Scribe) on May 09, 2013 at 21:37 UTC
    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.