From owner-freebsd-questions Sat Aug 24 14:24:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56FD937B400 for ; Sat, 24 Aug 2002 14:24:51 -0700 (PDT) Received: from relay02.cablecom.net (relay02.cablecom.net [62.2.33.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73EB443E77 for ; Sat, 24 Aug 2002 14:24:50 -0700 (PDT) (envelope-from hanspeter_roth@hotmail.com) Received: from gicco.cablecom.ch (dclient217-162-157-99.hispeed.ch [217.162.157.99]) by relay02.cablecom.net (8.12.5/8.12.5/SOL/AWF/MXRELAY/20020820) with ESMTP id g7OLOmWs035042 for ; Sat, 24 Aug 2002 23:24:49 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Received: (from idefix@localhost) by gicco.cablecom.ch (8.11.6/8.11.6) id g7OLOmN01046 for freebsd-questions@FreeBSD.ORG; Sat, 24 Aug 2002 23:24:48 +0200 (CEST) (envelope-from hanspeter_roth@hotmail.com) Date: Sat, 24 Aug 2002 23:24:48 +0200 From: Hanspeter Roth To: freebsd-questions@FreeBSD.ORG Subject: Re: execution of cc question Message-ID: <20020824232448.A968@gicco.cablecom.ch> Reply-To: freebsd-questions@FreeBSD.ORG Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <200208242058.NAA16603@idk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200208242058.NAA16603@idk.com>; from tony@idk.com on Sat, Aug 24, 2002 at 01:58:12PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Aug 24 at 13:58, Tony spoke: > I am running csh and trying to compile a c program. > > When compiled the programs generates a lot of errors. The error that is > causes the problem is scrolled off the screen too fast to read. > > How do I redirect the output of cc to more or better yet to a file. Your c compiler probably issues the error messages on the standard error channel. In csh style shells you can't divert standard output and error output to different files. You can however divert both to the same file. This is done via >&. For example: make prog >& made.log There are editors like emacs and vim that let you compile from within the editing session. If you use vim you can compile by :make prog and then then browse errors by :cnext. You may put something like the following into ~/.vimrc map :cnext map :cNext set cmdheight=2 Then you can browse errors by pressing . -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message