I am trying to detect if the tape is present in the drive or not. It would be necessary for a backup script. On solaris "mt status" command gives this information, but in AIX it does not. What else does?
How about using tapechk, just try to check consistency on first file.It would normal rewind and the read the files(tapechk 1 to check the first file on the tape). Just capture the exitcode thats it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.