Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2000 17:58:04 -0800 (PST)
From:      R Joseph Wright <rjoseph@nwlink.com>
To:        Jim Pazarena <paz@ccstores.com>
Cc:        tracker@worldy.com, questions@FreeBSD.ORG
Subject:   Re: how to capture errors to a file
Message-ID:  <Pine.BSF.4.21.0002221754350.506-100000@mammalia.sea>
In-Reply-To: <10002221732.aa23317@ccstores.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 22 Feb 2000, Jim Pazarena wrote:

>  >Subject: how to capture errors to a file
>  >From: "david e. banning" <tracker@worldy.com>
>  >Date: Sun, 20 Feb 2000 01:46:36 GMT
>  >To: questions@freebsd.org
> 
>  >I am having errors compiling - I want to send error messages to
>  >a file - I tried;
>  >"make 2>&1 > errorfile" - nope

What's the "2>&1 >" for?

>  >then I tried;
>  >"make > errorfile" - get some of the errors - the rest go to the screen
> did you try:
> 
>    make >errorfile 2>&1
> ??

I recently discovered "script" which copies everything that goes onto the
screen to a file.  For example,

script errorfile make

did the trick for me.



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?Pine.BSF.4.21.0002221754350.506-100000>