Hi All
I am trying to come up with a way of automating Soraris packages through my
perl script.
The problem I am having is that in the middle off the package install I get
asked to overwrite a bunch of files. What I am not sure of is how to capture
the response and then send an answer.
Here is the way I am installing the package:
@output = `/usr/sbin/pkgadd -n -d /var/tmp/SomePackage.pkg -R /data/jboss
jboss-services`;
If I run the command myself, this is what happens.
----------------------------------------------------------
## Processing package information.
## Processing system information.
1 package pathname is already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
The following files are already installed on the system and are being
used by another package:
/data/jboss/blah1.xml
/data/jboss/blah2.jar
/data/jboss/dist/balh4.jar
* - conflict with a file which does not belong to any package.
Do you want to install these conflicting files [y,n,?,q]
__________________________________________________________
Is there a way I can capture this "Do you want to install these conflicting
files [y,n,?,q]" and send it a response some how ?
Perl = v5.8.5 built for sun4-solaris
Solaris 9
Cheers Roman