Mailing List Archive


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

Re: [tlug] stdin/stderr redirection under Solaris




> > Gerald Naughton wrote:
> > 
> > > 
> > > this may work
> > > cmd1 2>&1 | cmd2
> > 
> > But does not split the two streams, it combines them
> > into one. I want to 
> > pipe stdout to cmd1 and stderr to cmd2, something
> > like:
> > 
> > $cmd |1 cmd1 |2 cmd2
> > (assuming |1 pipes stdout and |2 pipes stderr)
> > 
> not sure of this one  
> 
> did you try 
>   cmd 1> | cmd2 2>| cmd3

how about

(cmd | cmd1 > result1) 2>&1 | cmd2 > result2


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links