delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/28/08:29:17

From: arcadepreserv AT hotmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How Do I catch a "printf interrupt" ?
Date: Fri, 28 Jan 2000 11:31:21 GMT
Organization: Deja.com - Before you buy.
Lines: 54
Message-ID: <86ruma$v80$1@nnrp1.deja.com>
References: <86n3vr$dll$1 AT nnrp1 DOT deja DOT com> <ckdv8sgv1os67atnmpqbqqm5fi6c8dsui8 AT 4ax DOT com>
NNTP-Posting-Host: 193.15.174.253
X-Article-Creation-Date: Fri Jan 28 11:31:21 2000 GMT
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; TUCOWS)
X-Http-Proxy: 1.0 x33.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

OK! A pipe seams as something worth to try...

I assume that what you mean is that I use a syntax like,

backend.exe >frontend.exe

?

How do I then read the data in the frontend.exe that I write ?

and also, is it possible (certanly preferable) to get frontend.exe to
use a call to backend.exe, something like
dosexec(backend.exe>frontend.exe") ? I think this sounds like an
endless recursive loop.


I could of cource start it with Dosexec("backend>file.txt"),

but it is then possible to open the file.txt and read it, while
backend.exe writes to it, which is what I want ?


Is it at all possible to have my frontend program analyze the output
from backend.exe, while backend.exe executes, without an interrupt
handling ?

when I start a program from my program, does'nt my program halt until
the started program terminates ?




In article <ckdv8sgv1os67atnmpqbqqm5fi6c8dsui8 AT 4ax DOT com>,
  REPLYTOd_yerrick AT hotmail DOT comNO2CANNEDHAM wrote:
> On Wed, 26 Jan 2000 15:31:07 GMT, arcadepreserv AT hotmail DOT com wrote:
>
> >I am doing a frontend to an MSdos application, i.e. another msdos
> >application is started from my frontend, and I need to decode the
> >output from this application.
> >
> >I think it is possible to trap a interrupt that accurs when a call to
> >printf is made, and then read the string a pointer is pointing to.
>
> uhhh... that's what a pipe is for?
>
> --
> Damian Yerrick  http://yerricde.tripod.com/
> View full sig at http://www.rose-hulman.edu/~yerricde/sig.html
> Comment on story ideas at http://home1.gte.net/frodo/quickjot.html
>


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


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