Operating System - HP-UX
1833792 Members
2530 Online
110063 Solutions
New Discussion

Re: Automatting responses in install script...

 
jmckinzie
Super Advisor

Automatting responses in install script...

I have a script that is run during an install.

How do i create a script to answer those questions....

I am thinking something like swask.....

Thanks,

Jody
2 REPLIES 2
OldSchool
Honored Contributor

Re: Automatting responses in install script...

you can use "here-docs" for simple cases, like:

./install_script <answer1
answer2
answer3
EOF

another option is "expect" which can pattern match on prompts if such is req'd
James R. Ferguson
Acclaimed Contributor

Re: Automatting responses in install script...

Hi Jody:

Well, 'swask' is intended to run interactive software request scripts that store responses in a response file for subsequent execution by 'swinstall' or 'swconfig'.

More information can be found here:

http://docs.hp.com/en/5992-2146/5992-2146.pdf

Regards!

...JRF...