Ouptput question

JSONCRAIG@aol.com JSONCRAIG@aol.com
Tue Sep 28 19:18:00 GMT 1999


c++ -o foo.exe -g -v foo.cpp 2>&1 | tee out.txt

the last two lines of output are this:
     as -o C:\WINDOWS\TEMP\ccR9Mhgb.o C:\WINDOWS\TEMP\ccI0Figb.s
    Bad command or file name

The file &1 is created and out.txt is not.  I'm using GCC-2.95 Mingw32, from 
Mumits site.  Any ideas?

Jason

 > try
>  
>  c++ -o foo.exe foo.cpp 2>&1 | tee out.txt   
>  
>  the 2>&1 sends stderr to stdout.  then pipe it to tee which will print
>  it to the screen AND to a file.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list