From: lanka@speedracer.sysdev.telerate.com (Jeff Lanka)
Subject: Re: Tape status. Messages to VMS
Date: 5 Aug 1994 19:42:56 GMT [thread overview]
Message-ID: <31u4o0$5br@jetty.telerate.com> (raw)
In-Reply-To: 31mm1u$k77@nic.hookup.net
> - How can I check that a TLZ06 tape drive is loaded?
>(Want to check prior to backups starting). Scenerio is that
>Operator feeds OSF/1 box a new tape each morning and backups
>run late at night during batch cycle. The
>'mt -f /dev/rmt1h status' command doesn't seem appropriate
>for use inside a script.
We have a script with the following segment in it:
Press <RETURN> when ready....\c"
read choice
while [ `file /dev/rmt0h|awk '{print $NF}'` -eq 'offline' ]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
do
/bin/echo "
ERROR: tape is NOT mounted...
Please mount a tape..........\n\c"
sleep 02
/bin/echo "
Press <RETURN> when ready....\c"
read choice
done
--
Jeff Lanka
VMS/Unix SM sysdev
Dow Jones/Telerate
prev parent reply other threads:[~1994-08-05 19:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-08-02 23:49 Tape status. Messages to VMS Scott McCann
1994-08-05 19:42 ` Jeff Lanka [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox