I have no direct experience of the specific device in question, but would a slow poll on a CP REWIND command do the trick? Say something like ...
Do 10 Mounted = 1 "CP REWIND 181" If Rc == 0 then Leave Mounted = 0 "CP SLEEP 1 MIN" End If \ Mounted then Do <<< Timeout Logic >>> End One of my earliest usermods was to make CP REWIND give a non-zero return- code on REWIND NOT PERFORMED as it was (and probably still is) the only, "easy" command that gives control back regardless of whether or not the device is ready. (TAPE REW waits for the device to come ready before returning control.) Regards Jeff Gribbin
