Date: Wed, 9 Feb 2000 09:00:25 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: arcadepreserv AT hotmail DOT com cc: djgpp AT delorie DOT com Subject: Re: How Do I start another DOS program from DJGPP ? In-Reply-To: <87p46p$e4u$1@nnrp1.deja.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 8 Feb 2000 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); Yes, this is possible. > It seams that the non multitasking in DOS can be overridden, at least > some ? No. What happens is that "gets" runs first and creates a temporary file. "backend" is not run until "gets" exit, at which point it reads what "gets" wrote from the temporary file. And your launcher program, the one which called `popen', waits until "backend" exits, and then reads its output from another temporary file. So the programs all run one after the other, and there's still no multitasking.