Email Subscription Notifications Suspended Temporarily
We are in the process of making navigation in the Servers and Operating Systems forums simpler and more direct. While doing this, we have to temporarily suspend email notifications for subscriptions. If you are subscribed to one or more discussion boards or blogs in the community, please check them daily to see new content. Notifications will be turned back on in a few days. We apologize for any inconvenience this may cause. Thanks, Warren_Admin
StoreEver Tape Storage
cancel
Showing results for 
Search instead for 
Did you mean: 

how can detect the end of tape

benseghir_1
Advisor

how can detect the end of tape

hello,

I use !EOT in my shell script to detect the end of tape, but it does'nt give a correct result.

if you have an other proposition, thank you in advance
4 REPLIES
Leif Halvarsson_2
Honored Contributor

Re: how can detect the end of tape

Hi,
Which command are you using in the script, does it "understand" EOT.
Peter Godron
Honored Contributor

Re: how can detect the end of tape

Hi,
I think you have already asked the question in:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=830915

Can you please update with:
1. Are you writing or reading the tape?
2. What command (cpio/backup/tar...) are you using
3. What makes you think your script is not detecting EOT?

Please also note Borislav's final remark in the thread mentioned above.

Regards
Peter Godron
Honored Contributor

Re: how can detect the end of tape

Hi,
can we assume that this is no longer a problem, as you haven't updated your threads.
If the problem is resolved please assign points to the most useful answer and close the thread identifying the solution.
Many Thanks
benseghir_1
Advisor

Re: how can detect the end of tape

hi,

excuse me for my lateness, i didn't know that i must close the thread.
For my question,i used the cpio command for
reading from the tape, in my shell script i
want to test end of tape when i was reading from the tape then i wrote

while [ ! EOT ]

do

cat /dev/nst0 | cpio -icvt

done

the shell didn't accept this form

then i used mt -f /dev/nst0 fsf
and i test $?

thank you for your help


cpio