#
# Layers writes out the info to /tmp/xtt.pid where pid is the process id of
#  the process that does the agent call.  The only way to get the process id
#  from the shell is by running the process in the background.
#
xtagent XTT &
TMPFILE=/tmp/xtt.$!
trap "rm -f $TMPFILE" 0 1 2 15
wait
if [ -f $TMPFILE ]
then
    cat $TMPFILE
else
    exit 1
fi
