www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/03/02:20:42

From: mapson AT mapson DOT com (Mapson)
Newsgroups: comp.os.msdos.djgpp
Subject: redirecting stdout from within a DJGPP program
Date: Tue, 03 Nov 1998 06:07:07 GMT
Organization: Yale University
Lines: 10
Message-ID: <363e9c11.35648820@news.cis.yale.edu>
NNTP-Posting-Host: psych-09.eng.yale.edu
X-Newsreader: Forte Free Agent 1.1/32.230
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

There is one point in my program where I call another program (using
system("program.exe") ), and I am interested in redirecting (and
silencing at the console) the output of that program to a file I
already have opened for output. This is something I'd previously done
in a batch file with ">>"

freopen() basically works, but it doesn't silence the output to the
console. Is there a better way? 

Please post here- no e-mail. Thanks!

- Raw text -


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