appending both stderr and stdout to a single file

mark m.roth2006 at rcn.com
Thu Mar 8 13:31:11 UTC 2007


Marq wrote:
> 
> ls >> dirlist 2>>&1
> 
> this will redirect stdout first and then the stderr
> 
> but i need to redirect the both output as it appear in the screen (with out
> redirection)

Not sure if tee will support stderr, but you *could*
process >> rpt 2>>&1 &
tail -f rpt

	mark




More information about the redhat-list mailing list