J
jason
When I execute the folloing at the HPUX Posix shell
diffmsg=`scripts/cdiff.sh`
print $diffmsg
I get the echo output from that script.
However, inside Perl, apparently once the shell system call closes,
that environment variable is gone as $diffmsg never has anything in
it.
system "diffmsg=`scripts/cdiff.sh` ";
$diffmsg = ($ENV{'diffmsg'});
Am I correct in my findings?
Any easy way to be able to condition the output from this shell script
in perl? I'm hoping without having to open, read and close a file.
Thanks.
diffmsg=`scripts/cdiff.sh`
print $diffmsg
I get the echo output from that script.
However, inside Perl, apparently once the shell system call closes,
that environment variable is gone as $diffmsg never has anything in
it.
system "diffmsg=`scripts/cdiff.sh` ";
$diffmsg = ($ENV{'diffmsg'});
Am I correct in my findings?
Any easy way to be able to condition the output from this shell script
in perl? I'm hoping without having to open, read and close a file.
Thanks.