* How to tell if tape in drive?
@ 1996-06-25 4:00 Malcolm Dunnett
1996-07-01 4:00 ` Marek Pola
0 siblings, 1 reply; 2+ messages in thread
From: Malcolm Dunnett @ 1996-06-25 4:00 UTC (permalink / raw)
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.
For anyone who speaks VMS, I'm looking for the equivalent of
$MOUNT/FOR/NOASSIST <tape> and then checking $STATUS.
Thanks in advance.
--
=============================================================================
Malcolm Dunnett Malaspina University-College Email: dunnett@mala.bc.ca
Computer Services Nanaimo, B.C. CANADA V9R 5S5 Tel: (604)755-8738
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to tell if tape in drive?
1996-06-25 4:00 How to tell if tape in drive? Malcolm Dunnett
@ 1996-07-01 4:00 ` Marek Pola
0 siblings, 0 replies; 2+ messages in thread
From: Marek Pola @ 1996-07-01 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-07-01 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-25 4:00 How to tell if tape in drive? Malcolm Dunnett
1996-07-01 4:00 ` Marek Pola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox