www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/13/15:31:42

From: yosuke AT ccwf DOT cc DOT utexas DOT edu ()
Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.misc
Subject: redir.exe question
Followup-To: comp.os.msdos.djgpp
Date: 13 Jul 2000 17:41:34 GMT
Organization: The University of Texas at Austin; Austin, Texas
Lines: 38
Message-ID: <8kkv0e$4co$1@geraldo.cc.utexas.edu>
NNTP-Posting-Host: piglet.cc.utexas.edu
X-Trace: geraldo.cc.utexas.edu 963510094 4504 128.83.42.61 (13 Jul 2000 17:41:34 GMT)
X-Complaints-To: abuse AT cc DOT utexas DOT edu
NNTP-Posting-Date: 13 Jul 2000 17:41:34 GMT
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have question about redir which came with djgpp.

I tested following code.

#include <stdio.h>
int main(){
	printf("1: this is stdout\n");
	fprintf(stderr,"2: this is stderr\n");
	printf("3: this is stdout\n");
	fprintf(stderr,"4: this is stderr\n");
}

when I executed it, I get followin on screen.
1: this is stdout
2: this is stderr
3: this is stdout
4: this is stderr

but when I go

redir -eo a.exe > out
or 
redir -o out -eo a.exe

I got this in out.

2: this is stderr
4: this is stderr
1: this is stdout
3: this is stdout

Is there any way not have stderr to be mixed into stdout?

--
yosuke kimura
Center for Energy and Environmental Resources
The Univ. of Texas at Austin, USA

- Raw text -


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