Mail Archives: djgpp/1998/10/09/22:14:03
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 -