This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Ouptput question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]