in reply to Re: Reading from STDOUT after Redirecting it.
in thread Reading from STDOUT after Redirecting it.
open(CMD, "($cmd | sed 's/^/STDOUT:/') 2>&1 |"); print " test\n" if $DEBUG; while (<CMD>) { if (!s/^STDOUT://) { print " Command failed: ", $_; exit 2; } else { chomp; @argTest = split; } }
|
|---|