DentArthurDent has asked for the wisdom of the Perl Monks concerning the following question:
This works great on UNIX, where the default shell knows how to deal with the redirect, but on Windows I'm having issues. What I would like to do is have perl unify the STDOUT and STDERR from that program onto one stream without using the shell redirection. I looked at the documentation for open(), which I thought would be able to do that but I didn't see what the idiom might be.@valid_types = `getValidTypes 2>&1`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Capturing both STDERR and STDOUT without shell redirect
by BioLion (Curate) on Aug 06, 2009 at 13:21 UTC | |
|
Re: Capturing both STDERR and STDOUT without shell redirect
by tokpela (Chaplain) on Aug 06, 2009 at 13:59 UTC | |
by fullermd (Vicar) on Aug 06, 2009 at 19:18 UTC | |
|
Re: Capturing both STDERR and STDOUT without shell redirect
by ikegami (Patriarch) on Aug 06, 2009 at 18:01 UTC | |
|
Re: Capturing both STDERR and STDOUT without shell redirect
by nimdokk (Vicar) on Aug 06, 2009 at 13:58 UTC | |
|
Re: Capturing both STDERR and STDOUT without shell redirect
by Narveson (Chaplain) on Aug 06, 2009 at 21:31 UTC |