On Sat, 3 Feb 2001, Matthew Melvin wrote:

> On Fri, 2 Feb 2001 at 2:57pm (+0100), Gustav Schaffter wrote:
>
> > Hi,
> >
> > I'd like to redirect the STDOUT from a program to /dev/nul and at the
> > same time pipe STDERR to another pgm.
> >
> > How could this be done?
> >
>
> The order of redirection counts here...
>
>       prog1 2>&1 1>/dev/null | prog2
>
> ... so 2 goes to 1, then 1 goes to null, but 2 still points to where 1 used
> to point to.

not to be pedantic, but i believe that the "1>" could be shortened
to just ">".  gotta save them keystrokes, ya know. :-)

rday

-- 
Robert P. J. Day
Eno River Technologies, Durham NC
Unix, Linux and Open Source training


"This is Microsoft technical support.  How may I misinform you?"



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to