From owner-freebsd-questions Sun Jul 18 12:43:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (mailbox.adm.binghamton.edu [128.226.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 705F514ECD for ; Sun, 18 Jul 1999 12:43:27 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from cs.binghamton.edu (agate.cs.binghamton.edu [128.226.3.45]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with ESMTP id PAA23912 for ; Sun, 18 Jul 1999 15:43:25 -0400 (EDT) Message-ID: <379230E9.9FFDE1A1@cs.binghamton.edu> Date: Sun, 18 Jul 1999 15:54:17 -0400 From: Zhihui Zhang X-Mailer: Mozilla 4.06 [en] (X11; I; SunOS 5.6 sun4m) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: save cc output to a file Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message