help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: piping stderr and stdout to 2 different apps


From: Kenneth J. Allman
Subject: RE: piping stderr and stdout to 2 different apps
Date: Fri, 11 Jan 2002 08:40:58 -0500

Are you refering to shell redirection?

>From the bash man pages ...

        In the following descriptions, if the file descriptor num-
       ber is omitted, and the first character of the redirection
       operator  is  <,  the  redirection  refers to the standard
       input (file descriptor 0).  If the first character of  the
       redirection  operator  is >, the redirection refers to the
       standard output (file descriptor 1).

       The word following the redirection operator in the follow-
       ing  descriptions, unless otherwise noted, is subjected to
       brace expansion,  tilde  expansion,  parameter  expansion,
       command substitution, arithmetic expansion, quote removal,
       pathname expansion, and word splitting.  If it expands  to
       more than one word, bash reports an error.

       Note  that  the order of redirections is significant.  For
       example, the command

              ls > dirlist 2>&1

       directs both standard output and  standard  error  to  the
       file dirlist, while the command

              ls 2>&1 > dirlist

        directs  only the standard output to file dirlist, because
        the standard  error  was  duplicated  as  standard  output
         before the standard output was redirected to dirlist.

-----Original Message-----
From: William C Murnane [mailto:address@hidden
Sent: Wednesday, January 09, 2002 7:25 PM
To: address@hidden
Subject: piping stderr and stdout to 2 different apps


is there a [simple | non-simple way to pipe the stderr of one
application
to the stdin of the next? i want this to work on standard libs, so I
can't just recompile the application generating the stderr.  

if possible, i would like stdout to go to another pipe.  

        thanx, 
        will
________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/web/.

_______________________________________________
Help-gnu-utils mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-gnu-utils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]