On 2003-02-25 10:53, Brian Henning <[EMAIL PROTECTED]> wrote:
> can anyone tell me how to redirect just the stderr in tcsh?
> command > /dev/null #suppress stdout
> command >& /dev/null #suppress stderr and stdout
> what can i run to suppress just the stderr?
The easiest way I can think is to use sh(1) to redirect descriptors,
which has a much cleaner and easy to use syntax for redirection.
tcsh> cat lala
echo "This shows up on stdout"
echo "This shows up on stderr" >&2
tcsh> /bin/sh -c './lala 2>/dev/null'
This shows up on stdout
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message