Operating System - HP-UX
1848517 Members
4470 Online
104031 Solutions
New Discussion

Re: swremove invoked by ksh script

 
SOLVED
Go to solution
Fabreg
Occasional Contributor

swremove invoked by ksh script

Hi guys.
I have to do a script that invoke swremove command.
I need to run it without any question or any other feature of swremove (like open a dedicate window when it runs etc. etc.)
If I don't remember bad, the syntax was:

swremove -i

where depot_name is the software viewed with swlit

Is this right?

Many thanks.
Best Regards.
Fabrizio
5 REPLIES 5
Torsten.
Acclaimed Contributor
Solution

Re: swremove invoked by ksh script

You are not dealing with depots while uninstalling normally.

# /usr/sbin/swremove

If needed, add the autoreboot=true option.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ivan Krastev
Honored Contributor

Re: swremove invoked by ksh script

You can use it without -i (this is an interactive option):

#swremove software @ host
or
#swremove software


regards,
ivan



James R. Ferguson
Acclaimed Contributor

Re: swremove invoked by ksh script

Hi:

If you don't remember the syntax, why not consult the manpages?

# man swremove

(or):

http://docs.hp.com/en/hpuxman_pages.html

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: swremove invoked by ksh script

Shalom Fabrizio,

swremove -i

-i means interactive.

This dog isn't going to hunt (I miss that phrase).

Your script can swremove depots with the right additional parameters. The concept of script based software removal and a script are mutually exclusive ways to handle the software removal.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Fabreg
Occasional Contributor

Re: swremove invoked by ksh script

Many thanks to all.

# swremove

works fine.
Fab