[Gllug] Detect if a program is available

Ian Norton-Badrul bredroll at darkspace.org.uk
Thu Jul 26 20:27:04 UTC 2007


On Thu, Jul 26, 2007 at 01:17:08PM +0100, Tom Weissmann wrote:
> Is there a way to check that a program / executable is available, 
> without running it or using whereis or which?

you could probably do this with a short shell script,

eg 

if [ test -x /bin/foo ]
then
bar
fi

Ian

> I have an Emacs function that depends on Cygwin netcat being installed, 
> and I'd like to it to check.
> 
> Thanks in advance,
> 
> Tom SW
> -- 
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
> 

-- 
Ian Norton-Badrul

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list