Operating System - HP-UX
1825662 Members
3470 Online
109686 Solutions
New Discussion

Silent package installation swinstall swask

 
mendocino
Occasional Contributor

Silent package installation swinstall swask

Hi,

I have a question and hoping that someone might already know. I m trying to do a silent installation on a packages. I generate a set of response files manually.

# swask -s /package.depot -c response_files \*

I m able to install the package silently without any issues if I install the same package I generated the response files from.

# swinstall -s /package.depot - c response_files package

If I try to use the same response files to install the same package with a different version( ie 0.12.0.212.0 versus 0.12.0.213 ) then it complains.

Do anyone know of any way to disable this strict checking so I don t have to generate new response files for every build?

Thanks.
1 REPLY 1
Antonio Cardoso_1
Trusted Contributor

Re: Silent package installation swinstall swask

Hi mendocino,
An alternate solution to use of response files may be to run your swinstall from a perl script , and use 'expect' lib to catch questions and do the appropriate replies.

More about Expect lib:
http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod

Here attached a simple perl example passing commands through a SSH connection to show the use of expect.