RE: environment-Variable from korn-schell to perl

2001-06-26 Thread Stephen Nelson
You can execute the korn-shell script internally by using system(). ## The perl script use strict; $ENV{'PASSED_FROM_PERL'} = 'Hello, ksh!'; system('ksh', 'kornscript.sh') == 0 or die "system returned ", $? << 8, "from ksh kornscript.sh; stopped"; - ## kornscript.sh echo "Passed from Perl

RE: environment-Variable from korn-schell to perl

2001-06-25 Thread Yacketta, Ronald
you have in the file, that is if they are key=value Ron > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 25, 2001 9:22 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: envi

RE: environment-Variable from korn-schell to perl

2001-06-25 Thread Peter . Schopen
> >I have to source a KORN-Shell Script, so that the environment-Variables > >created by > >KORN-Shell is available in my PERL-Script. Ho do I that > > > The hash %ENV stores the environment variables. > > if ( $ENV{HOME} =~ /dave/ ) > { > print "Good morning Dave."; > } > > http:

Re: environment-Variable from korn-schell to perl

2001-06-25 Thread Paul Johnson
On Mon, Jun 25, 2001 at 08:42:11AM -0400, Craig Moynes/Markham/IBM wrote: > >I have to source a KORN-Shell Script, so that the environment-Variables > >created by > >KORN-Shell is available in my PERL-Script. Ho do I that > > The hash %ENV stores the environment variables. > > if ( $ENV{HOM

Re: environment-Variable from korn-schell to perl

2001-06-25 Thread Craig Moynes/Markham/IBM
>I have to source a KORN-Shell Script, so that the environment-Variables >created by >KORN-Shell is available in my PERL-Script. Ho do I that The hash %ENV stores the environment variables. if ( $ENV{HOME} =~ /dave/ ) { print "Good morning Dave."; } http://www.perldoc.com/perl5.6/pod