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.

-- 
WebCentral Pty Ltd           Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road.           Network Operations - Systems Engineer
PO Box 4169, East Brisbane.                       phone: +61 7 3249 2583
Queensland, Australia.                            pgp key id: 0x900E515F



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

Reply via email to