From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6fa3baa1311cf7dc X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-05 14:13:54 PST Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!uunet!jetty.telerate.com!speedracer.sysdev.telerate.com!lanka From: lanka@speedracer.sysdev.telerate.com (Jeff Lanka) Newsgroups: comp.unix.osf.osf1 Subject: Re: Tape status. Messages to VMS Date: 5 Aug 1994 19:42:56 GMT Organization: OrgFreeware Distribution: world Message-ID: <31u4o0$5br@jetty.telerate.com> References: <31mm1u$k77@nic.hookup.net> Reply-To: lanka@speedracer.sysdev.telerate.com (Jeff Lanka) NNTP-Posting-Host: speedracer.sysdev.telerate.com > - 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 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 when ready....\c" read choice done -- Jeff Lanka VMS/Unix SM sysdev Dow Jones/Telerate