StoreEver Tape Storage
1753318 Members
6340 Online
108792 Solutions
New Discussion юеВ

Re: 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 4
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