wildnature has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys, here is my code snippet
use strict; use warnings; `ifconfig 2>&1`This means redirect STDERR to STDOUT, but why this code make ifconfig no output in screen?
This is my understanding: STDERR is null, so STDOUT is "nulled" too, which makes it no display on screen, I am not very sure about it
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how does '2>&1' work ?
by cdarke (Prior) on Feb 21, 2011 at 08:37 UTC | |
by wildnature (Novice) on Feb 23, 2011 at 01:50 UTC | |
by ikegami (Patriarch) on Feb 23, 2011 at 06:10 UTC | |
by wildnature (Novice) on Feb 23, 2011 at 07:19 UTC | |
by Anonymous Monk on Feb 23, 2011 at 05:01 UTC | |
|
Re: how does '2>&1' work ?
by Eliya (Vicar) on Feb 21, 2011 at 07:44 UTC | |
|
Re: how does '2>&1' work ?
by Anonymous Monk on Feb 21, 2011 at 07:44 UTC |