+ Reply to Thread
Results 1 to 4 of 4

Thread: tape is mounted

  1. #1
    HT2008
    Guest

    tape is mounted

    20.000 Softwares download here
    Hi



    I would like to write a shell script which should first check wheather the tape is placed in the tape drive .



    if the tape is there

    it should rewind it like mt -f /dev/rmt/0m rew



    if the tape is missing from the tape drive

    then send a mail saying that the tape is missing and exit.



    can somebody tell me how do i do it.



    regards

    Hrishy

  2. #2
    fallingstar2011
    Guest

    Try this:

    Code:

    #! /usr/bin/ksh
    if mt -f /dev/rmt/0m > /dev/null ; then
    echo tape drive is ready
    then
    echo tape drive could not be opened
    fi


    The mt command will fail unless the drive is on-line. If it fails:

    1. no tape loaded

    2. tape is loaded, but drive is offline



    and depending on your particular mt driver posssibly:



    3. tape is loaded and on-line, but in use by another process.

  3. #3
    huanhm5
    Guest

    Hi



    Excellent answer..never thought about that .Thank you very much



    regards

    Hrishy

+ Reply to Thread

Similar Threads

  1. Flush mounted component
    By boyvuonchuoi2008 in forum Chipsets & Bios
    Replies: 2
    Last Post: 04-26-2009, 02:54 AM
  2. External USB disk cannot be mounted
    By cool3 in forum openSUSE
    Replies: 3
    Last Post: 04-22-2009, 04:45 PM
  3. Freshly mounted PC that does not start
    By anhtrangram in forum Peripherals
    Replies: 7
    Last Post: 02-27-2009, 04:17 PM
  4. Can a HD be mounted in any orientation?
    By hellinheaven2005 in forum Overclocking
    Replies: 7
    Last Post: 12-08-2006, 07:15 AM
  5. copy tape to tape using dd
    By TrusaPerTrifs in forum SUN Solaris
    Replies: 3
    Last Post: 04-14-2004, 12:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts