Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: shell in programs Message-ID: <5367@auspex.auspex.com> Date: 18 Jan 91 21:53:16 GMT References: <371@ddmt.dla.mil> <1991Jan16.185649.7120@chinet.chi.il.us> <11090@jpl-devvax.JPL.NASA.GOV> Distribution: na Organization: Auspex Systems, Santa Clara Lines: 7 >No big problem if it doesn't. Just catch the ENOEXEC and do the shell call >you would have done anyway. Or, if you also want to run a command and have the system search $PATH to see which one to run, if appropriate, rather than having to give a full pathname, use "execvp()" which does the path search *and* the catching of ENOEXEC for you....