On Thu Nov 06 2008 @ 3:42, Wagner, David --- Senior Programmer Analyst --- WGO wrote: > I need an environment variable from my .profile on Solaris and having > troubles getting at it. I have a Perl script which executes fine outside of > cron and now am trying to do via cron. I wanted to stay away from a shell > script and was wondering what is the easiest way to get my .profile loaded, > so the Perl script can access the needed variable.
Rather than try to source your entire profile, why not simply set the necessary environment variables in the Perl script itself, using the %ENV hash? See this post perhaps for some other tips (it's Solaris specific, which may help): http://www.perlmonks.org/?node_id=624540 T -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/