exec() with executable shell scripts

John E Van Deusen III jiii at visdc.UUCP
Sun Apr 23 08:21:50 AEST 1989


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



More information about the Comp.unix.wizards mailing list