LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-14-2010, 04:17 AM   #1
dctw
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Rep: Reputation: 0
Script to Detect whether tape exist in tape drive or not


Not sure whether is feasible or not...

Any idea how to script to detect whether are there any tape media loaded in the tape drive ?
 
Old 12-14-2010, 04:26 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You probably want to use the `mt' command with the `status' operation.
 
1 members found this post helpful.
Old 12-15-2010, 12:17 AM   #3
dctw
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Can't seem to find the "mt" command though...
Which package should I install?

I'm using RHEL5.
 
Old 12-17-2010, 03:04 AM   #4
dctw
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Found the package.

mt-st.i386

Thanks for the tips
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Tar file to tape drive faster than dir/files to tape drive? Runge_Kutta Linux - General 2 03-11-2009 07:13 AM
Check tape drive availability (full tape) TripleOne Linux - Server 0 02-12-2009 03:45 AM
Unable to insert the DAT72 Tape in tape drive. peddip Red Hat 8 01-08-2009 09:27 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
OpenBoot can't detect tape drive midlifecrisis Solaris / OpenSolaris 10 02-01-2006 07:34 PM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration