delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/09/10:45:18

From: "Campbell, Rolf [SKY:1U32:EXCH]" <moscoop AT americasm01 DOT nt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How Do I start another DOS program from DJGPP ?
Date: Wed, 09 Feb 2000 10:12:08 -0500
Organization: Nortel Networks
Lines: 26
Message-ID: <38A183C7.AC3F0097@americasm01.nt.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000208094014 DOT 28790K AT is> <87p46p$e4u$1 AT nnrp1 DOT deja DOT com>
NNTP-Posting-Host: wmerh0tk.ca.nortel.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.71 [en] (X11; I; HP-UX B.10.20 9000/785)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

arcadepreserv AT hotmail DOT com wrote:

> Thanks for your answers. On the not possible in DOS though,
> it would be possible to have a starter program that runs a
>
> popen(gets.exe|backend.exe)
>
> where gets.c is something like
>
> char *s;
> while (1)
> gets(s);
>
> I have tested this and indeed s always contains the latest output
> string that backend.exe has output on screen. gets can of course have a
> bigger loop and thus process the s string in any matter while the
> backend.exe runs and prints it out.

    But, 'backend.exe' does not run until 'gets.exe' has finished running,
which is not what you wanted.

--
(\/) Rolf Campbell (\/)



- Raw text -


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