Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 1999 08:44:22 +0930 (CST)
From:      Greg Lewis <glewis@ares.maths.adelaide.edu.au>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        questions@freebsd.org
Subject:   Re: save cc output to a file
Message-ID:  <199907182314.IAA01582@ares.maths.adelaide.edu.au>
In-Reply-To: <379230E9.9FFDE1A1@cs.binghamton.edu> from Zhihui Zhang at "Jul 18, 1999 03:54:17 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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
>   $ cc -c filename.c 2>out.dat
> 
> Thanks for any help.

You're probably using csh or tcsh, in which case you need

cc -c filename.c >& out.dat

-- 
Greg Lewis 				glewis@trc.adelaide.edu.au
Computing Officer			+61 8 8303 5083
Teletraffic Research Centre


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?199907182314.IAA01582>