From: marek.pola@mailbox.swipnet.se (Marek Pola)
Subject: Re: How to tell if tape in drive?
Date: 1996/07/01 [thread overview]
Message-ID: <4r8smk$7rs@mn5.swip.net> (raw)
In-Reply-To: 1996Jun25.103140@malad1.mala.bc.ca
In article <1996Jun25.103140@malad1.mala.bc.ca>,
dunnett@mala.bc.ca (Malcolm Dunnett) wrote:
> I'm trying to determine from within a shell script, whether or not
>there is a tape in the tape drive, the idea being that if there is
>the script will write some files to the tape, and if not it will just
>exit.
You can do a "mt stat" and check on the status. I don't remember by heart the
number for a tape being mounted, but a little trial-and-error will reveal it
for you.
Regards
Marek
prev parent reply other threads:[~1996-07-01 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-25 4:00 How to tell if tape in drive? Malcolm Dunnett
1996-07-01 4:00 ` Marek Pola [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