in reply to multiple programs sharing redirected STDERR
see $| and IO::Handle::setvbuf If you use the default settings with syswrite you should be ok. If you are on a system where this does not work you can add an flock around the syswrite.
BEGIN { $SIG{'__WARN__'} = sub { syswrite STDERR, $_[0] } } warn "Warnings go to STDERR\n";
Update: added example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: multiple programs sharing redirected STDERR
by ff (Hermit) on Apr 26, 2005 at 18:21 UTC | |
by tbone1 (Monsignor) on Apr 26, 2005 at 18:26 UTC |