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(){ $detailsInfo->AppendText($_); }