N
neilsolent
Before calling a command with system() or with backticks, is there a
neat way to check that the executable exists in the path (i.e. like
the UNIX "which" command) ?
Seems a bit untidy to attempt to run the command blindly and then use
the return code / output to first check whether the command was even
found.
thanks,
Neil
neat way to check that the executable exists in the path (i.e. like
the UNIX "which" command) ?
Seems a bit untidy to attempt to run the command blindly and then use
the return code / output to first check whether the command was even
found.
thanks,
Neil