-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06-Jun-2002/17:04 -0700, The Gyzmo <[EMAIL PROTECTED]> wrote: >Why do you have to put '2>&1' after '/dev/null' when >piping something to /dev/null, like this:? > >[command] > /dev/null 2>&1
That redirects STDERR to STDOUT. STDOUT is already redirected to /dev/null, so the overall effect is to redirect both streams to /dev/null. Tony - -- Anthony E. Greene <mailto:[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Chat: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux. The choice of a GNU generation <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Anthony E. Greene <mailto:[EMAIL PROTECTED]> 0x6C94239D iD8DBQE8///8pCpg3WyUI50RAnPUAKCucTIdknRDK4QqVaUzfsy/XlYJgACdF7O/ l/InE9HVNwwEFErIEz2KjTY= =vBPY -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list