Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sourceware.cygnus.com Delivered-To: mailing list cygwin@sourceware.cygnus.com From: JSONCRAIG@aol.com Message-ID: Date: Tue, 28 Sep 1999 21:36:33 EDT Subject: Re: Ouptput question To: fortinj@ibm.net CC: cygwin@sourceware.cygnus.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: AOL 4.0 for Windows 95 sub 10 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