Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!visdc!jiii From: jiii@visdc.UUCP (John E Van Deusen III) Newsgroups: comp.unix.wizards Subject: Re: exec() with executable shell scripts Summary: Use the -c form of sh(1) Message-ID: <520@visdc.UUCP> Date: 22 Apr 89 22:21:50 GMT References: <647@mqcomp.oz> Reply-To: jiii@visdc.UUCP (John E Van Deusen III) Organization: VI Software Development, Boise, Idaho Lines: 14 To top off this discussion, please note that an explanation of the special characteristics of execlp and execvp in duplicating the actions of the shell are to be found somewhat obscurely in the exec(2) manual entry. If you do not want to use either of those variants, you have to do the following, (I have used execl for clarity): execl("/bin/sh", "sh", "-c", "/bin/true", 0); -- John E Van Deusen III, PO Box 9283, Boise, ID 83707, (208) 343-1865 uunet!visdc!jiii