Thanks, Matt. That did it. :-)

BTW, yes rpjday, you're right. But since I'm going to use this in a
script, I prefer to keep it verbose. I save the shortcuts for
interactive commands. Thanks anyway.

Regards
Gustav

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.
> 
> M.

-- 
pgp = Pretty Good Privacy.

To get my public pgp key, send an e-mail to: [EMAIL PROTECTED]

Visit my web site at http://www.schaffter.com



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

Reply via email to