in reply to Re^8: Read UNIX environment variable
in thread Read UNIX environment variable

I don't get the email sent, I don't see an error message in the mailbox for the user cron is runing as. If I use the data dumper module and add print Dumper(\%ENV); to the code I can see the env vars when running it interactivly. Can you please let me know how I can debug this issue? Thanks

Replies are listed 'Best First'.
Re^10: Read UNIX environment variable
by Corion (Patriarch) on Feb 09, 2011 at 14:52 UTC

    The cron daemon usually sends the output of a program via mail to the owner submitting the job. Find out how to configure your cron daemon to do that, and/or consult with your system administrator how to modify your system setup to do this.

    Alternatively, write debugging information from your program to a file so you can see how your program progresses and what values it finds, and where.

      Thanks, problem solved. Sysadmins had locked the cron account.