Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!sri-spam!ames!ptsfa!ihnp4!homxb!homxc!ldm From: ldm@homxc.UUCP (L.MARCO) Newsgroups: comp.unix.questions Subject: Re: Getting status of a tape drive Message-ID: <798@homxc.UUCP> Date: Thu, 30-Jul-87 11:21:42 EDT Article-I.D.: homxc.798 Posted: Thu Jul 30 11:21:42 1987 Date-Received: Sat, 1-Aug-87 10:26:30 EDT References: <8500@brl-adm.ARPA> Organization: AT&T Bell Laboratories, Holmdel Lines: 19 In article <8500@brl-adm.ARPA>, jepeway@UTKCS2.CS.UTK.EDU writes: > > I'm writing a c-shell script to do backups on our system, a VAX 8200 > running Ultrix 1.2. I'd like to be able to determine whether there is a > tape mounted and online in the tape drive (a TU81 plus), and I want to be > able to do so regardless of whether some other process is using the drive. Why not the csh equivalent of: if echo >/dev/rmt0 then : else echo Rmt0 is fubar exit fi Disclaimer : I use old fashioned Bourne shell exclusively. Flames on "Don't you know that won't work in csh' >/dev/null