Subject: Re: Redirecting outputs
To: Colin Wood <ender@is.rice.edu>
From: Brett Lymn <blymn@awadi.com.au>
List: netbsd-help
Date: 10/17/1996 20:04:56
According to Colin Wood:
>
>If you're in the csh, do a:
>
>command >& /dev/null
>

True, but he was doing a system system call which execs sh to run the
commands.

>As for sh, I think it's more like:
>
>command 2>&1 > /dev/null
>

wrong way around - that way stderr gets pointed at stdout (most likely
the tty) and then stdout gets pointed at /dev/null - this leaves
stderr still pointing at the tty so you will get your error output
still coming out on the tty :-)

-- 
Brett Lymn, Computer Systems Administrator, AWA Defence Industries
===============================================================================
  "Upgrading your memory gives you MORE RAM!" - ad in MacWAREHOUSE catalogue.