Re: Perl script runs through Cron but does not generate filesby blue_cowdawg (Monsignor)
|on May 09, 2013 at 18:07 UTC||Need Help??|
Here is a piece of code for you:
Don't forget to $ chmod 755 /path/to/my/script/above.pl so it can run. First run it as a "batch" job
which will be the same environment as a cronjob would be. Then run it from the command line:
then check the differences:
and that should help you rule some stuff out.
Typically the difference between command line and cron has to do with permissions or environment being different. It ain't rocket science.
Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg