Date: Tue, 24 Nov 1998 10:20:31 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Scott Guilbeaux cc: djgpp AT delorie DOT com Subject: Re: getting started In-Reply-To: <365A155D.3DB@tisd.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Mon, 23 Nov 1998, Scott Guilbeaux wrote: > Here's a little program that will spawn another program > > #include > > int main(void) > { > execlp("progname", "progname", "param1", "param2", "param3", 0); > } The `exec*' family of functions is not for spawning subsidiary programs, it is for *replacing* the current program with another one. In other words, after the call like above, the calling program will never get control back! The original poster didn't have that in mind when he asked his question, I think.