Sender: nate AT cartsys DOT com Message-ID: <361EC0D9.5849B99A@cartsys.com> Date: Fri, 09 Oct 1998 19:05:13 -0700 From: Nate Eldredge 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com David M. Cook wrote: > > On Wed, 7 Oct 1998 22:51:56 -0400, Joshua Tacey 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