Hi All
Im very new to perl scripting coming from a shell background, but im determine to stick to it and learn perl.
I have env variables which i have defined in my perl script and work fine from command line as these env variables are in my profile. When i get cron to run the script i dont believe these variables are being used and causing my script to not pull back data.
[
#!/usr/bin/perl -w
#
#
use strict;
$ENV{'AUTOSYS'} = "/opt/autosys/P22";
$ENV{'AUTOSERV'} = "P22";
$ENV{'AUTOTREE'} = "/opt/autosys";
$ENV{'AUTOUSER'} = "/opt/autosys/P22/autouser";
]
Any guidance or help would be most appreciated.