Operating System - HP-UX
1826222 Members
3536 Online
109692 Solutions
New Discussion

swinstall interactive text mode

 
SOLVED
Go to solution
Jasmin Berube
Advisor

swinstall interactive text mode

Howcome this simple command brings me in interactive text mode?

swinstall -s /tmp/depotname.depot

I want to find a way to install without any interaction using a script. Most of the time I will be in a remote shell.

Thanks!
6 REPLIES 6
Sean OB_1
Honored Contributor

Re: swinstall interactive text mode

Man swinstall. It's all detailed in the man pages for swinstall.

If you don't specify the products to install it automatically takes you into interactive mode.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: swinstall interactive text mode

Because you didn't specify any targets.

Try this:

swinstall -s /tmp/depotname.depot \*

Note the escaped '*'. You may also need to -x options as well.


If it ain't broke, I can fix that.
Sajid_1
Honored Contributor

Re: swinstall interactive text mode

hello,

check and make sure that the path is correct. Did you see any messages in swagentd.log? what about giving some options too:
# swinstall -x autoreboot=true -x match_target=true -s /tmp/depot_name.depot
learn unix ..
Sachin Patel
Honored Contributor

Re: swinstall interactive text mode

Hi Jasmin,
define product.
For example I have netscape on remote sys1 in my home dir.

#swinstall -s remsys1:/home/sachin/netscape netscape

Thanks
Sachin

Is photography a hobby or another way to spend $
Hai Nguyen_1
Honored Contributor

Re: swinstall interactive text mode

Jasmin,

A. Clay S.'s method is the one I have used. It should work in your case.

Hai
Craig Rants
Honored Contributor

Re: swinstall interactive text mode

Jasmine,
What you can usually do if it is one patch or product then:

swinstall -s /tmp/PHKL_9000.depot PHKL_9000 \*

If you wanted to get out of the GUI and use the TUI, then enter unset DISPLAY before you run your swinstall command.

This is a script I use to install a lot of patches, the whole thing isn't there but you get the gist:

for i in `cat site.list`
do
if [ '#' != $(echo $i | cut -b1) ]
then
echo "Installing $PATCH_11 on $i"
sleep 1
$SSHBIN/ssh $i "/usr/sbin/swinstall -s DEPOTSERVER:/var/spool/sw/$PATCH_11 \*"
else
echo $i > /dev/null
fi
done

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut