Using tee to create a log

Alan Dayley plug-discuss@lists.PLUG.phoenix.az.us
Thu, 26 Jul 2001 13:05:34 -0700


At 11:56 AM 7/26/01 -0700, you wrote:
>If foo writes to stderr as well as stdout, some lines won't get captured
to the file (you'll see them scrolling by).  If that happens and you want
to capture those lines too, try this:
>  foo &>logfile

This one did it.  I had tried ">" but it did not capture anything.  I did
not know about the "&>" to capture stderr.  Evidently this program spits
everything to stderr.

Thanks.

Alan

-
/------------------------------------------
|Alan Dayley             www.adtron.com
|Software Engineer       602-735-0300 x331
|ADayley@adtron.com
|
|Adtron Corporation         
|3710 E. University Drive, Suite 5
|Phoenix, AZ  85034
\-------------------------------------------