I wrote a script to open approximately 30 tape drives consequetively over a scsi connection. I wrote this script so that I would be able to number write the rmt number of the tape drive on it as each drive opened. The script goes like this:
tapeutil -f /dev/rmt0 open &
sleep 2
tapeutil -f /dev/rmt1 open &
sleep 2
tapeutil -f /dev/rmt2 open &
sleep 2
etc. > rmt30
However, my problem is, that by the time /dev/rmt17 opens the process seems to stop, but after about 45 seconds, all of the remaining 13 drivers open at exactly the same time and the aixterm window where the drive was running seems to hang until I <Ctrl C> it.
It would be nice to have the ability for each drive to open consequitively as well as the ability to have all of the drives open precisely at the same time. Can anyone help me?
Thank you in advance.
ron
tapeutil -f /dev/rmt0 open &
sleep 2
tapeutil -f /dev/rmt1 open &
sleep 2
tapeutil -f /dev/rmt2 open &
sleep 2
etc. > rmt30
However, my problem is, that by the time /dev/rmt17 opens the process seems to stop, but after about 45 seconds, all of the remaining 13 drivers open at exactly the same time and the aixterm window where the drive was running seems to hang until I <Ctrl C> it.
It would be nice to have the ability for each drive to open consequitively as well as the ability to have all of the drives open precisely at the same time. Can anyone help me?
Thank you in advance.
ron