[lug] redirecting stderr with 2>

Gary Hodges hodges at srrb.noaa.gov
Thu Jun 8 09:09:27 MDT 2000


Thanks for the tip.  I just started another series of compiles using your 
suggestion.

Gary

On Thu, 8 Jun 2000, Alan Robertson wrote:

> 2> captures everything which was written to file descriptor 2.  This is
> up to the particular program.  I have seen compilers that sent all
> output to file descriptor 1, and some that send it all to file
> descriptor 2.
> 
> If you want to capture everything, then do this:
> 
> 	commandlinestuff >>save.output 2>&1
> 
> This will capture both outputs to the same file.




More information about the LUG mailing list