This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Ouptput question
- To: fortinj at ibm dot net
- Subject: Re: Ouptput question
- From: JSONCRAIG at aol dot com
- Date: Tue, 28 Sep 1999 21:36:33 EDT
- CC: cygwin at sourceware dot cygnus dot com
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