sdetweil has asked for the wisdom of the Perl Monks concerning the following question:
on perl 5.10, linux fedora 10, 32 bit (can't update for other reasons)if($environmentDetails->GetValue() eq "Yes"){ $ENV{'SKIP_SYSTEM'}='0'; } else{ $ENV{'SKIP_SYSTEM'}='1'; } # have to execute the shell script from the current folder.. # *ix is picky, you must be explicit open(CMD, ( ($^O eq 'MSWin32' ) ? "":"./")."$command 2>&1 |"); while(<CMD>){ $detailsInfo->AppendText($_); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing env{} variable to child fails on linux,works on windows
by RichardK (Parson) on Jan 12, 2013 at 16:11 UTC | |
|
Re: passing env{} variable to child fails on linux,works on windows
by flexvault (Monsignor) on Jan 12, 2013 at 16:48 UTC | |
by sdetweil (Sexton) on Jan 12, 2013 at 19:03 UTC | |
by dave_the_m (Monsignor) on Jan 12, 2013 at 19:37 UTC | |
by sdetweil (Sexton) on Jan 13, 2013 at 13:39 UTC | |
by andal (Hermit) on Jan 14, 2013 at 09:19 UTC | |
by thargas (Deacon) on Jan 14, 2013 at 13:49 UTC | |
by flexvault (Monsignor) on Jan 12, 2013 at 19:11 UTC |