open(FH, "$Exec_Cmd 0>&2 |"); while () { print $_; # I take care of STDIN but then this # does not handle STDERR }