1752600 Members
4741 Online
108788 Solutions
New Discussion юеВ

Re: Scripting vxrestore

 
SOLVED
Go to solution
steve hasler
Advisor

Scripting vxrestore

Hi

HP-UX 11i v3 on itanium,

I want to write a restore script which will involve automating vxrestore and work it's way through a tape restoring each fileset.

on Tru64 I use...

# mt fsf (position no.)
# cd (to restore dir)
# vrestore -vx
# mt rewind
# mt fsf .....and so on

But with vxrestore on HP-UX this prompts for next volume..
"Specify next volume #:"
obviously there is no operator response to this as it's in the background, the job then fails.

Is there a way of automating this ?

Thanks
Steve


2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: Scripting vxrestore

Hi Steve:

If you know the responses you would give interactively then you should be able to specify them, one per line, in a file that you redirect to STDIN:

# vxrestore -vx < myresponses

Regards!

...JRF...
steve hasler
Advisor

Re: Scripting vxrestore

Hi James,

Great, That works.

Thanks
Steve