Re: ontape
Posted in 1996
nBrian Hampson wrote:
>
> Juan R. Guzman (jguzman@transre.com) wrote:
>
> : . /u/trc/sysadmin/scripts/ubkup
> : else
> : echo '0\\n' | $INFORMIXDIR/bin/ontape -s | head -14 >> /tmp/arc.log
> : 2>&1
>
> I gather that your echo null is to give the <cr> that ontape looks for?
> What happens if the tape isn't in the drive?
>
> We do the following:
>
> mt -f /dev/rmt/0 status
> if [ $? -ne 0 ]
> then
> echo "No Tape in tape unit!" >> $DBLOG
> exit 1
> else
> echo `date`
> $INFORMIXDIR/bin/ontape -s -L 0 <<-EOI
>
> EOI
> fi
>
> Otherwise the ontape continues to prompt for a tape filling the logfile's
> file system in a matter of minutes.
>
> B.
>
> --
> "A computer lets you make more mistakes faster than any invention
> in human history with the possible exceptions of handguns and tequila ."
>
> Brian P. Hampson ASL Analytical Service Laboratories Ltd
> System Administrator, Vancouver, BC (604)253-4188
> ----------------- http://www.asl-labs.bc.ca/ ----------------------------
nice....thanks