www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/05/20:57:39

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Reading Make in a DOS box
Date: Thu, 06 Apr 2000 00:28:26 +0100
Organization: Customer of Planet Online
Lines: 14
Message-ID: <48enes8svelp2mo2fn58jga0iccta4fau4@4ax.com>
References: <senbmfmfrfg150 AT corp DOT supernews DOT com>
NNTP-Posting-Host: modem-8.oxygen.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg2.svr.pol.co.uk 954978000 13749 62.136.7.8 (5 Apr 2000 23:40:00 GMT)
NNTP-Posting-Date: 5 Apr 2000 23:40:00 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

nobody AT nowhere wrote:

> Simple thing, but how do you read the output of the compiler when running make 
> in a Win95 DOS box?  i tried piping it to a file, like "make > out.txt" or 
> "make | type out.txt" and even "make | more", but nothing works.

You are on the right lines, but the problem is that error messages get
printed to stderr (not stdout) and DOS will only let you redirect
stdout.  Unlike a Unix shell, such as BASH, which would let you
redirect either or both.

You can do what you want in DOS using the redir utility:

redir -eo -o out.txt make

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019