[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'time' redirection, and pipe redirections in general
From: |
Dave B |
Subject: |
Re: 'time' redirection, and pipe redirections in general |
Date: |
Sat, 25 Jul 2009 11:06:26 +0100 |
User-agent: |
KMail/1.9.10 |
On Saturday 25 July 2009, Linda Walsh wrote:
> AFAIK, I'm still screwed if I want to create more than one
> pipe for outputs -- either sending stderr to one pipe and stdout to
> another, OR a way of even doing what "tee" does, but built into the
> shell, so I could, using the building "tee", a file descriptor as an
> output target.
IIUC, This can be accomplished with process substitution:
myprogram 1> >(command1) 2> >(command2) 3> >(command3) etc.etc.
where command1 gets what myprogram writes to fd 1, command2 gets what
myprogram writes to fd 2, etc.etc.
But maybe I'm not understanding correctly what you're looking for.
--
D.