in reply to Re: once again: program output and return code
in thread once again: program output and return code

I've recently had the same sort of conundrum on Win32 and Perl. I nifty trick I've seen is to use OS redirection to shove STDERR, to STDOUT, as most shells will do with "/bin/ls 2&>1" In that way you get ALL the output of the program, and you can still manage to obtain the exit code using $?
  • Comment on Re: Re: once again: program output and return code