in reply to
Print STDOUT and STDERR to file and to screen
Given any cmd:
open(CMD, "cmd 2>&1 |");
[download]
Comment on
Re: Print STDOUT and STDERR to file and to screen
Download
Code
Replies are listed 'Best First'.
Re^2: Print STDOUT and STDERR to file and to screen
by
Bloodnok
(Vicar)
on Aug 02, 2009 at 22:46 UTC
This/that won't do what the OP requested since all it does is to force STDERR onto STDOUT - it doesn't satisfy the requirement to send to both file and screen in parallel.
A user level that continues to overstate my experience :-))
[reply]
In Section
Seekers of Perl Wisdom