Mail Archives: djgpp/1998/10/09/03:21:37
On Thu, 08 Oct 1998 05:20:45 GMT, davecook AT home 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.
>
>>Like as the last part of your program, it runs another program.
>
>Then exec() would be appropriate, since it's the last thing to execute.
The spawn() group of functions are worthy of a look.
- Raw text -