#!/bin/sh
set -u  # force better programming and ability to use check for not set
if [ "${1:-}" = "-x" ] ; then set -xv; shift; fi

# sbin/$RCSfile$  $Revision$

# script to dump *ftt* drive stats
# this should not effect drive position

USAGE="`basename $0` <device>"

if [ ! "${1:}" ];then
    echo "$USAGE"
    exit
fi

export FTT_TAPE
FTT_TAPE=$1

if [ ! -c $FTT_TAPE ];then
    echo "$FTT_TAPE is not a character device"
    exit
fi

$FTT_DIR/bin/ftt_test 2>&1 <<EOD
ftt_open
ftt_status
ftt_close
EOD

