[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: piping make attempts to log
From: |
Sven N. Thommesen |
Subject: |
Re: piping make attempts to log |
Date: |
Tue, 09 Jun 1998 10:36:04 -0500 |
At 07:57 AM 6/9/1998 -0600, you wrote:
>At 05:14 PM 6/8/98 GMT, you wrote:
>> I'm using Swarm under Windows NT, and a major problem during
>>development is the DOS window not allowing you to scroll back and
>>view the entire history of a make attempt. If you have several
>>warnings/errors they all scroll by until you can't see the original
>>errors (which may have caused all the subsequent ones!) Has anyone
>>come up with a method of piping the make results to a log file?
>
>Yep. It's
>
> make 2> log.txt
>
>The "2" signifies to bash that you want stderr output. I think
>a "1" is assumed if you just use the ">" sign, where "1" means
>stdout output. If you define another file unit number and open
>a file to associate with that unit number, you can use that number
>in that place, as well. I don't think 3 and up are pre-defined.
Or, if you want it all output to the same file, it's
make > log.txt 2>&1
Or you can split things up:
make > log.txt 2>err.txt
(I have no opinion on the religious issue of bash vs. emacs ;-)
Cheers,
-Sven-
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================