delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/08/01:24:03

From: Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How Do I start another DOS program from DJGPP ?
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <j49v9s0k63pdk3osq8k9ib8i6c609cl4fe@4ax.com>
References: <87nb7r$5gb$1 AT nnrp1 DOT deja DOT com>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 26
X-Trace: /K+neUKG2Cfhgyfp0HytWlV3s3P6SMjAgnrAZHiol8x5xijl5e30G1BrstgGnwoehvz/rlEKyTRW!1fJyF2ZcBDdADQXunAfdyoVWE5XLqlFOYhQsWsHiowzr2rW9nWtY5nyv1HIWL7u4/22kil/WMA==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 08 Feb 2000 05:11:42 GMT
Distribution: world
Date: Tue, 08 Feb 2000 05:11:42 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

on Mon, 07 Feb 2000 20:51:09 GMT, arcadepreserv AT hotmail DOT com wrote:

>I am looking for a dosexex("myprog.exe");
>
>type of command, it must be there but what is the syntax and include
>needed ?

Look up system() and spawn*() in the libc docs.

>And then I need the calling program to proceed while the
>called program executes, how do I do this ?

By not using DOS. DOS can't multitask.

>a last question, which is not really essential is how can I read the
>output from the called program from the calling program ?

By redirecting stdout to a temporary file.

foo.exe > filename

-- 
Damian Yerrick  http://yerricde.tripod.com/
Comment on story ideas: http://home1.gte.net/frodo/quickjot.html
AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/
View full sig: http://www.rose-hulman.edu/~yerricde/sig.html

- Raw text -


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