#!/bin/sh

TTAHOME=/opt/taratella
STTATOOLS=$TTAHOME"/tools"
dn=/dev/null
if [ $1 ] ; then
   cmd=$1
   shift 1
else
   cd $STTATOOLS 2>$dn
   echo "stta [ cmd  args] "
   echo "tools list ($STTATOOLS): "
   lista=`ls 2>$dn` 
   for file in ` echo $lista ` 
   do 
       [ -x $file ] && echo  "$file"
   done
   exit 1
fi 
if [ -x $STTATOOLS/$cmd ] 
then
   exec $STTATOOLS/$cmd $* 
else
   echo "No puedo ejecutar $cmd $*"
fi
