Date: Sun, 18 Jul 1999 23:14:56 +0100 From: Mark Ovens <markov@globalnet.co.uk> To: Zhihui Zhang <zzhang@cs.binghamton.edu> Cc: freebsd-questions@freebsd.org Subject: Re: save cc output to a file Message-ID: <19990718231456.A269@marder-1> In-Reply-To: <379230E9.9FFDE1A1@cs.binghamton.edu>; from Zhihui Zhang on Sun, Jul 18, 1999 at 03:54:17PM -0400 References: <379230E9.9FFDE1A1@cs.binghamton.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990718231456.A269>
