Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

how to pipe to stdout and stderr



Maybe I'm just too tired right now, but I can't find the solution how to
pipe the standard output and standard error to 2 different programs.

Example:
 program foo   (prints to stdout and stderr)
  program bar1 should receive only stdout
  program bar2 should receive only stderr

How can I do this?  Someone knows how to do that in bash, too?

Thanks so much,
 Andy.

-- 
           http://peru.spiegl.de  Our project
      http://radiomaranon.org.pe  Radio Marañón, Jaén, Perú
                              o      _     _         _
  ------- __o       __o      /\_   _ \\o  (_)\__/o  (_)          -o)
  ----- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/       /\\
  ---- (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_    _\_v
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 If you can't write your ideas on the back of my calling card,
 you don't have a clear idea.  -- David Belasco



Messages sorted by: Reverse Date, Date, Thread, Author