Unix Programming - Solaris pkging: Selectively instal files

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2005 > Solaris pkging: Selectively instal files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Solaris pkging: Selectively instal files
Prab_kar@hotmail.com

2005-04-22, 6:00 pm

Hello all,
I dont know if this is an appropriate group to ask questions about
Solaris pkging, but I'm taking a shot.

I'm trying to creating a Solaris pkg which should install files
selectively based on the environment its being installed on. This
process will be a silent install, with no user interaction. I'm
interested in using the response file.

The pkg should determine which host its on and install files
accordingly. If host is "NY1234", it needs to install "NYFoo.txt" file
and if the host is "LON1234", it needs to install "LondonFoo.txt".


I believe I can achive this using the class action scripts and defining

the class in the pkginfo or prototype filles. Could anyone give me some

pointers on how to go about doing this, please?


Where do I put code like,
------------------------------=AD----------------------
if (`hostname` =3D=3D "NY1234" ) then
<install> NYFoo.txt
else if ( `hostname` =3D=3D "LON1234" ) then
<install> LONFoo.txt
endif
------------------------------=AD----------------------


What command should I use for "<install>"? Is there any Solaris command

to install just a file?=20


Thanks for your time,=20
Prabh

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com