From: arcadepreserv AT hotmail DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: How Do I start another DOS program from DJGPP ? Date: Thu, 10 Feb 2000 13:02:02 GMT Organization: Deja.com - Before you buy. Lines: 55 Message-ID: <87ucs9$7at$1@nnrp1.deja.com> References: <87p46p$e4u$1 AT nnrp1 DOT deja DOT com> <38A183C7 DOT AC3F0097 AT americasm01 DOT nt DOT com> NNTP-Posting-Host: 193.15.174.253 X-Article-Creation-Date: Thu Feb 10 13:02:02 2000 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; TUCOWS) X-Http-Proxy: 1.0 x26.deja.com:80 (Squid/1.1.22) for client 193.15.174.253 X-MyDeja-Info: XMYDJUIDkivik To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com How about this approach then ? frontend.c main{ ... setup_timer_interrupt_to_call_int_handler_often_enough; exec_dos_program("backend.exe>tempfile.dat"); ... } int_handler { read_last_string_from_file("tempfile.txt"); process_that_string_quickly_since_we_are_in_an_interrupt; } In article <38A183C7 DOT AC3F0097 AT americasm01 DOT nt DOT com>, "Campbell, Rolf [SKY:1U32:EXCH]" wrote: > 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 (\/) > > Sent via Deja.com http://www.deja.com/ Before you buy.