| delorie.com/archives/browse.cgi | search |
| Xref: | news-dnh.mv.net comp.os.msdos.djgpp:2911 |
| Path: | news-dnh.mv.net!mv!news.sprintlink.net!usenet.kornet.nm.kr!ames!waikato!not-for-mail |
| From: | jpg AT cs DOT waikato DOT ac DOT nz (J P Griffiths) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Redirecting error messages into a file |
| Date: | 28 Oct 1995 00:02:44 GMT |
| Organization: | The University of Waikato |
| Lines: | 18 |
| Sender: | jpg AT waikato DOT ac DOT nz |
| References: | <Pine DOT SGI DOT 3 DOT 91 DOT 951018130224 DOT 13222A-100000 AT tower DOT york DOT ac DOT uk> |
| Reply-To: | jpg AT waikato DOT ac DOT nz |
| Nntp-Posting-Host: | lucy.cs.waikato.ac.nz |
| To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
| Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
Shawn Hargreaves (slh100 AT york DOT ac DOT uk) wrote:
: The problem is,
: when I compile with a command like 'gcc test.c > errors', the output
: doesn't get redirected properly.
Hi Shawn,
Try using the "redir" program in the bin directory. It has options
to redirect stdout (-o file) and stderr (-e file) from a process.
Instead of "gcc test.c >errors" try:
redir -o out.txt -e errors.txt gcc test.c
This should sort it out.
Hope this helps,
Jon.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |