In amverify, line 373-375:
373 until $MT $MTF $DEVICE rewind; do
374 sleep 3
375 done
which after expanding the vars, results to something like, on e.g.
linux:
373 until mt -f /dev/nst0 rewind; do
374 sleep 3
375 done
The problem with this is that, when there is no tape in the drive,
the mt command never succeeds, and you have an infinite loop.
Actually, I don't understand why this is in a loop. In all (HPUX,
Solaris, Linux) OS'en I have experience with tapes, the mt command
waits until the tape is rewound before returning. The returncode
indicates the success or failure (e.g. no tape in the drive at all).
There are comments in the script indicating that AIX is different (but
that comment talks about "mt stat").
Can anyone with an AIX confirm if such a loop around "mt rewind" is
necessary? Or any other strange OS?
--
Paul Bijnens, Xplanation Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|