[98961] in RedHat Linux List
Re: Does error info from "make" get logged?
daemon@ATHENA.MIT.EDU (Thomas Ribbrock \(Design/DEG\))
Wed Nov 11 11:01:31 1998
Date: Wed, 11 Nov 1998 16:00:05 +0000
From: "Thomas Ribbrock \(Design/DEG\)" <argathin@iname.com>
To: redhat-list@redhat.com
Mail-Followup-To: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.3.96.981111183507.1101A-100000@liposome.genebee.msu.su>; from TIM SOFTWARE on Wed, Nov 11, 1998 at 06:36:11PM +0300
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
TIM SOFTWARE writes:
>
>
> On Wed, 11 Nov 1998, Tim Daigle wrote:
>
> > When compiling a program with "make", does the error info get logged to a
> > file somewhere? If so where?
>
> you can make that file by yourself. just type:
>
> make blah-blah 2 > error.log
^^^
That needs to be 2>, i.e. no space between the 2 and the > (at least
in the sh I have here under Solaris, can't check bash on Linux right now).
Further on, it only works in sh/bash/ksh. In csh/tcsh, you'd have to use this:
make blah-blah >& error.log
The big disadvantage in csh/tcsh is that you can only redirect standard out
*and* standard error into a file, but not standard error on itself. This is
considered one of the reasons why one should use sh instead of csh for shell
scripting...
HTH,
Thomas
--
"Look, Ma, no obsolete quotes and plain text only!"
Thomas Ribbrock | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
"You have to live on the edge of reality - to make your dreams come true!"
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.