in reply to Re: redirecting STDERR from shell commands
in thread redirecting STDERR from shell commands
Anyway, it seems a waste to me to write to a file and then read it rather than opening a pipe. I just stumbled across the following piece of code:
open (CMD, "$cmd 2>&1|"); $errStr = <CMD>;
but it looks to me like this also involves the syntax of the underlying shell, or am I wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: redirecting STDERR from shell commands
by tye (Sage) on Sep 07, 2001 at 21:46 UTC |