Operating System - HP-UX
1832647 Members
2715 Online
110043 Solutions
New Discussion

Re: Script to automate installation

 
Amit Dixit_2
Regular Advisor

Script to automate installation

Hi,
Can we have a script which can perform the
weblogic or informix istallation on HP-UX
i.e. Instead of user supplying the Input
the script should pass the pre-defined
parameters.

Thanks,
AMit
6 REPLIES 6
Simon Hargrave
Honored Contributor

Re: Script to automate installation

Not knowing how Informix or Weblogic are installed anyway I can't be too specific, but as a general rule if it's a command script install that asks a series of questions in which you type, then you can do a "here" script, something like this: -

install_weblogic.sh </opt/weblogic
webuser
webgrp
y
n
EOF

Where the lines above the EOF are answers to the questions posed by the install script.
Victor Fridyev
Honored Contributor

Re: Script to automate installation

Hi,

Once upon a time I used the attached script for half-automatic installation.
You can use the parts which you find intersting.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Amit Dixit_2
Regular Advisor

Re: Script to automate installation

Hi,
I did'nt get your point can you explain
and how should my script handle the
creation of user account and specifying
java path, making entries in .profile

Thanks,
Amit

Amit Dixit_2
Regular Advisor

Re: Script to automate installation

Hi,
Anyone please help me with the script
to automate the installation of Weblogic
and Informix 9.4

Thanks,
Amit
Amit Dixit_2
Regular Advisor

Re: Script to automate installation

Hi,
I want a script to check whether a user exist or not if not then create it, set the vairables in the .profile file and then start the installation of package.

Thanks
Amit
Sanjay Kumar Suri
Honored Contributor

Re: Script to automate installation

Do something like below:

grep $1 /etc/passwd > /dev/null

if [ $? -ne 0 ]
then
echo "add user"
useradd -m user_name
echo "PARAMETER_NAME" >> /home/user_name/.profile
sh other_commands
else
echo "User already Exists ..."
exit 1
fi

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.