#!/bin/sh
#
# cmdLocation - Return the location of the specified command
#

CMD=$1

# We can't depend on the PATH variable being set properly, so we
# add the standard bin locations for this OS/machine/...

POSSIBLE_DIRS=`getBinPaths`

for i in $POSSIBLE_DIRS
do
    if [ -x "$i/$CMD" ]
    then
        echo `deReference $i`/$CMD
	exit 0
    fi

done

