deshdaaz has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Here is the riddle!
I have a script that runs fine if executed on command prompt. What script does is copy files from FTP, decompresses it, parse and prints out certain test data I am interested in.
However if the script is run through cron, I see correct output in the cron notification but I don't see the actual files generated in the directory. Seems like some compatibility issue.
Below is the o/p from the script (on command prompt)
Below is the o/p from the script (via Cron)Please be patient, files are being copied over from FTP site Unzipping apr25_03_45.stdf.gz.. Converting apr25_03_45.stdf to txt Done!
Please be patient, files are being copied over from FTP site Unzipping apr25_03_45.stdf.gz.. gunzip: apr25_03_45.stdf already exists; not overwritten Converting apr25_03_45.stdf to txt Converting apr27_10_12.stdf to txt Done!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl script runs through Cron but does not generate files
by blue_cowdawg (Monsignor) on May 09, 2013 at 18:07 UTC | |
Re: Perl script runs through Cron but does not generate files
by hdb (Monsignor) on May 09, 2013 at 17:58 UTC | |
Re: Perl script runs through Cron but does not generate files
by Anonymous Monk on May 09, 2013 at 19:02 UTC | |
Re: Perl script runs through Cron but does not generate files
by hotpelmen (Scribe) on May 09, 2013 at 20:33 UTC | |
by hotpelmen (Scribe) on May 09, 2013 at 21:37 UTC |
Back to
Seekers of Perl Wisdom