Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!ka From: ka@june.cs.washington.edu (Kenneth Almquist) Newsgroups: comp.unix.wizards Subject: Re: exec() with executable shell scripts Summary: If you want a path search, use exec[lv]p. Message-ID: <7991@june.cs.washington.edu> Date: 25 Apr 89 20:00:03 GMT References: <647@mqcomp.oz> <520@visdc.UUCP> <7954@june.cs.washington.edu> <522@visdc.UUCP> Organization: U of Washington, Computer Science, Seattle Lines: 9 jiii@visdc.UUCP (John E Van Deusen III) writes: > [The sample exec code in <7954@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