shell in programs

Guy Harris guy at auspex.auspex.com
Sat Jan 19 08:53:16 AEST 1991


>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....



More information about the Comp.unix.questions mailing list