delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/09/22:14:03

Sender: nate AT cartsys DOT com
Message-ID: <361EC0D9.5849B99A@cartsys.com>
Date: Fri, 09 Oct 1998 19:05:13 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: After you read this PLEASE DONT FLAME ME!
References: <361c290a DOT 0 AT news DOT softhouse DOT com> <slrn71oitc DOT 7fh DOT davecook AT rama DOT escnd1 DOT sdca DOT home DOT com>
Reply-To: djgpp AT delorie DOT com

David M. Cook wrote:
> 
> On Wed, 7 Oct 1998 22:51:56 -0400, Joshua Tacey <josht AT softhouse DOT com> wrote:
> 
> >How do you run a program inside a program?
> 
> If you aren't interested in sending input or getting output use system().
> Otherwise use popen().  Someone suggested one of the exec() calls, but that
> will exit the current program and not come back unless you use fork() to
> create another branch.

Note that in DJGPP you can't use `fork', so use one of the `spawn'
functions instead if you need it to come back.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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