12-23-2006
Issue with the Script
Hi
Thanks for ur reply. But the issue I am facing is different.
I am doing a Weblogic webserver insrallation on HP-UX. I have done this sucessfully on Win server but for HP-UX I am writing a automatix script for installation. The installation is getting stopped when it is reading the path where the server should be installed i.e \\appl\servername.
The installor needs series of input which should be given one after other through script.
is there a way to feed the series of input through scripts like this or we have to adopt some other approach ??
The motive is to run the instalation sucessfully without manul feeding of input parameters.
Hope this will help in making problem description more clear......
Regards
Vishal
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I created the following shell script file :
bash-3.00$ more Unlock_Statistics1.sh
#!/usr/bin/ksh
ORACLE_SID=prsal02; export ORACLE_SID
NLS_LANG=AMERICAN_AMERICA.AL32UTF8; export NLS_LANG
sqlplus -s /nolog << EOF
connect / as sysdba ;
set serveroutput on size 1000000;
execute... (1 Reply)
Discussion started by: jalpan.pota
1 Replies
2. Shell Programming and Scripting
hi , this script was devloped by somebody whome I dont know way back
# cat run_ucid.sh
#!/bin/csh
# run_ucid.sh
#
# This is a simple shell script that will start an application in
# the background and restart the application if it stops. Upon
# termination an email message is sent and the... (2 Replies)
Discussion started by: viv1
2 Replies
3. Shell Programming and Scripting
Hi Folks,
I am looking for a script where that should show the progress bar while running a process
Ex: while copying a file of size say 2 GB it should start the process as (0 %) and at the end it should show (100%)
Thanks in Advance
Phani. (4 Replies)
Discussion started by: phanivarma
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Im writing a shell script:
#!/bin/bash
#Send process which has exceeded 25%
#
echo 'pri pid user nice pcpu command' > /export/home/tjmoore/file2
#
if ps -eo pri,pid,user,nice,pcpu,comm | awk '{if($5 >= 25)print $0}' >> /export/home/tjmoore/file2 2>/dev/null
#
#
#
then... (1 Reply)
Discussion started by: jay02
1 Replies
5. Shell Programming and Scripting
I have a script in TC shell, for some reason its not working.
I'm trying to kick off a script if there are any files in a particular directory "/sample/test3"
Can anyone point out the issue in the same
#!/usr/bin/tcsh
while true
do
if ls /sample/test3 >& /dev/null ; then... (2 Replies)
Discussion started by: gaugeta
2 Replies
6. Shell Programming and Scripting
I found a post from a user requesting help rounding numbers. The script provided by Scrutinizer works fine most of the time but it errors out when trying to round these numbers:
30224939
50872456
20753012
They have in common, a zero in the second digit from left to right. Can someone help... (1 Reply)
Discussion started by: Dennis_Ayala
1 Replies
7. Shell Programming and Scripting
Hi,
I have a file at $HOME/t.txt, below is file content
cat $HOME/t.txt
CUSTOMER_${REGION}.out
Am using this file content in one script $HOME/samp.sh, below is the script
#!/bin/bash
REGION=USA
x=`cat ${HOME}/t.txt`
echo $x
Am getting following output.. CUSTOMER_${REGION}.out
... (3 Replies)
Discussion started by: shieksir
3 Replies
8. Shell Programming and Scripting
item,quantity,unit price,total
tea,1,1,1
coffee,3,4,12
sugar,5,2.5,12.5
tea,2,1,3
coffee,2,4,8
i have got the above file with following questions:
need to get the total value: which i got using :
a=0
for b in `cut -f4 -d ',' log`
do
c=`echo $a + $b | bc`
a=$c
done
echo "$a and $c"
... (9 Replies)
Discussion started by: bhupeshchavan
9 Replies
9. Shell Programming and Scripting
Below is my script. However when i run it, i get the below error
./dummy.sh: line 27: syntax error: unexpected end of file
#!/bin/bash
while :
do
read -r INPUT_STRING
case $INPUT_STRING in
test)
echo "Please enter id no : "
read... (4 Replies)
Discussion started by: chandraprakash
4 Replies
10. Shell Programming and Scripting
Hi,
I am beginner in shell scripting. I have written a script to parse file(s) having large number of lines each having multiple comma separated strings.
But it seems like script is very slow. It took more than 30mins to parse a file with size 120MB (523564 lines), below is the script code
... (4 Replies)
Discussion started by: imrandec85
4 Replies
LEARN ABOUT CENTOS
pmdavmware
PMDAVMWARE(1) Performance Co-Pilot PMDAVMWARE(1)
NAME
pmdavmware - VMware performance metrics domain agent (PMDA)
DESCRIPTION
pmdavmware is a Performance Metrics Domain Agent (PMDA) which exports metric values from a (possibly remote) VMware virtualisation host.
This implementation uses the VMare Perl API (refer to the online docs at http://www.vmware.com/support/developer/viperltoolkit). VIPerl is
a prerequisite for this PMDA, it needs to be installed and configured before attempting to use this agent. It is highly recommended that
you test your VIPerl installation using the demo programs that are shipped with VIPerl, before attempting to use this PMDA.
INSTALLATION
In order to access performance data using the VIPerl API, it is necessary to be able to login to the metrics source. Hence, a valid VMware
server name, user name and pass word are needed by the PMDA. These can be passed in on the command line (via the pmcd.conf file) or via a
vmware.conf file in the PMDA directory.
# cd $PCP_PMDAS_DIR/vmware
# [ edit vmware.conf ]
This file should contain three lines, such as:
$server = 'vm.server.net';
$username = 'XXXX';
$password = 'YYYY';
Once this is setup, you can access the names and values for the vmware performance metrics by doing the following as root:
# cd $PCP_PMDAS_DIR/vmware
# ./Install
If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/vmware
# ./Remove
pmdavmware is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is
installed or removed.
FILES
$PCP_PMDAS_DIR/vmware/vmware.conf
configuration file for the pmdavmware agent
$PCP_PMDAS_DIR/vmware/Install
installation script for the pmdavmware agent
$PCP_PMDAS_DIR/vmware/Remove
undo installation script for the pmdavmware agent
$PCP_LOG_DIR/pmcd/vmware.log
default log file for error messages from pmdavmware
SEE ALSO
pmcd(1).
3.8.10 Performance Co-Pilot PMDAVMWARE(1)