From: richard AT stardate DOT bc DOT ca Newsgroups: comp.os.msdos.djgpp Subject: Re: After you read this PLEASE DONT FLAME ME! Date: Fri, 09 Oct 1998 07:09:11 GMT Message-ID: <361db66e.4417850@208.2.180.14> References: <361c290a DOT 0 AT news DOT softhouse DOT com> X-Newsreader: Forte Free Agent 1.11/32.235 X-NNTP-Posting-Host: julius.annco.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 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.