in reply to Disable output from system
sub stfu_system { local (*OUT, *ERR); open OUT, ">&STDOUT"; open ERR, ">&STDERR"; close STDOUT; close STDERR; system @_; open STDOUT, ">&OUT"; open STDERR, ">&ERR"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Disable output from system
by ig (Vicar) on Mar 28, 2009 at 21:15 UTC | |
by educated_foo (Vicar) on Mar 28, 2009 at 22:30 UTC |