[Sunhelp] Redirecting STDERR

Jan Jansta jan_jansta at yahoo.com
Mon Sep 4 13:10:13 CDT 2000


Try to use sh, ksh, bash. Then you can redirect STDERR to file
this way
# command 2>filename

or you can redirect STDERR to STDOUT as well
# command 2>&1

# command >stdout_and_stderr.out 2>&1

You cannot use this feature in csh/tcsh.

good luck

Jan


> Date: Mon, 04 Sep 2000 11:33:09 +0100
> From: Rui Monteiro <rmonteiro at whatevernet.pt>
> To: sunhelp at sunhelp.org
> boundary="------------09E7FF26AF3F685533BDCBDF"
> Subject: [Sunhelp] Redirecting STDERR
> Reply-To: sunhelp at sunhelp.org
> 
> 
> --------------09E7FF26AF3F685533BDCBDF
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> Hello,
> 
> anyone knows how to redirect the STDERR of the current shell
> session so
> that any commands given have their STDERR also redirected ?
> 
> Thanks in advance.
> 
> Regards.
> 
> --
> Rui Monteiro                WhatEverNet Computing, SA
> rmonteiro at whatevernet.com   Praca de Alvalade, 6 - Piso 6
> Phone: +351 21 7994200      1700 036 Lisboa - Portugal
> Fax:   +351 21 7994242      http://www.whatevernet.com
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/





More information about the SunHELP mailing list