exec() with executable shell scripts
Kenneth Almquist
ka at june.cs.washington.edu
Wed Apr 26 06:00:03 AEST 1989
jiii at visdc.UUCP (John E Van Deusen III) writes:
> [The sample exec code in <7954 at june.cs.washington.edu>] will fail, that
> is exit(2), if program is not an absolute or relative pathname and is
> not a file in the current directory.
That was intentional: the initial problem was to do the equivalent of
an "exec" on a shell procedure. If you want a path search in addition,
then you can use execlp or execvp.
Kenneth Almquist
More information about the Comp.unix.wizards
mailing list