From owner-freebsd-questions Sun Jul 18 15:23:13 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sand4.global.net.uk (sand4.global.net.uk [194.126.80.248]) by hub.freebsd.org (Postfix) with ESMTP id BFEA914C58 for ; Sun, 18 Jul 1999 15:23:08 -0700 (PDT) (envelope-from marko@globalnet.co.uk) Received: from pc7s06a06.client.global.net.uk ([195.147.214.200] helo=marder-1.) by sand4.global.net.uk with esmtp (Exim 2.12 #1) id 115zKL-0004T6-00; Sun, 18 Jul 1999 23:22:33 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id XAA00362; Sun, 18 Jul 1999 23:14:56 +0100 (BST) (envelope-from marko) Date: Sun, 18 Jul 1999 23:14:56 +0100 From: Mark Ovens To: Zhihui Zhang Cc: freebsd-questions@freebsd.org Subject: Re: save cc output to a file Message-ID: <19990718231456.A269@marder-1> References: <379230E9.9FFDE1A1@cs.binghamton.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <379230E9.9FFDE1A1@cs.binghamton.edu>; from Zhihui Zhang on Sun, Jul 18, 1999 at 03:54:17PM -0400 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jul 18, 1999 at 03:54:17PM -0400, Zhihui Zhang wrote: > This should be a simple question, but I just do not know how to save > the > > output of $ cc -c filename.c to a file which is useful when you have > a lot of errors in your program. The following two do not work: > > $ cc -c filename.c > out.dat c filename.c 2>out.dat > Try: $ cc -c filename.c > out.dat 2>&1 2>&1 routes stderr to the same stream as stdout, cc writes it's errors to stderr, not stdout. > Thanks for any help. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:markov@globalnet.co.uk http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message