X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Subject: pipe, spawn, and redirecting stdout for child process? To: djgpp AT delorie DOT com X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006 Message-ID: From: Gordon DOT Schumacher AT seagate DOT com Date: Mon, 26 Feb 2007 16:43:31 -0700 X-MIMETrack: Serialize by Router on SV-GW1/Seagate Internet(Release 7.0.1 HF29|March 07, 2006) at 02/26/2007 03:43:34 PM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Proofpoint-FWRule: outbound2 X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.5502:2.3.11,1.2.37,4.0.164 definitions=2007-02-26_07:2007-02-24,2007-02-26,2007-02-26 signatures=0 Is there a way in DJGPP to use the spawn*() functions and capture stdout of the spawned process via a pipe? Is there an example of that somewhere? I've tried looking at the source code to redir but I'm just not putting it together. Perhaps this is just a case of me not figuring out how to mesh the UNIX-ish way of doing it with the DOS-ish way... :-P I understand how to do it using fork but obviously that's not an option here.