07-21-2011
script has been executed successfully or not??
Guys,
How can we know whether a script has been executed successfully or not ?
We dont have any log directories, and we are not given a chance to modify the script. Could someone help me out with this Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Guys,
i am facing a very strange issue, my code below does an ftp to server A and gets a file to Server B, once the file is in B an if condition is present to check if the pattern of the filename is ABC* then it has to be encrypted using OPENSSL as ABC.enc else if it of pattern 123* has to be... (3 Replies)
Discussion started by: meva
3 Replies
2. Shell Programming and Scripting
Hi
I have created a perl script & running it using Linux machine. I want my script to die when system command is unsuccessful but script is dying even when system command gets executed successfully. :wall:
I am using the command below :-
system($cmd) || die "FAILED $!";
print "Hello";
... (2 Replies)
Discussion started by: Priyanka Gupta
2 Replies
3. AIX
Hi
Script not getting executed via cron but executes successfully when executed manually. Please assist
cbspsap01(appuser) /app/scripts > cat restart.sh
#!/bin/ksh
cd /app/bin
date >>logfile.out
echo "Restart has been started....." >>logfile.out
date >>logfile.out
initfnsw -y restart... (3 Replies)
Discussion started by: samsungsamsung
3 Replies
4. Shell Programming and Scripting
Hi guys,
I have a scenario where i want to run a script from Node A. It ssh's into Node B and runs some awk commands there plus deposiriting the output on Node B.
Challenge is that the awk commands run properly when executed locally on Node B but fail when within the script on Node B. I do not... (0 Replies)
Discussion started by: jerkesler
0 Replies
5. Shell Programming and Scripting
Hi,
I have two scripts viz
and
I am running them in background.
I wish to know if both the scripts completed execution successfully.
So this is what I have done
/tmp/commet/bin/connectdb1.sh &
condb1=$?
/tmp/commet/bin/connectdb2.sh &
condb2=$?
However, I am getting error... (7 Replies)
Discussion started by: mohtashims
7 Replies
6. UNIX for Dummies Questions & Answers
Hai guys
I am running three shellscripts through Gtk2-Perl(GUI)
these are the scripts
Drccalibrescript1 script2 script3
Gtk2-Perl(GUI)
drccalibre -> If I run this script through Gtk2-Perl(GUI)
these are results of the drccalibrescript1 . summary/.results
I have to find size of... (1 Reply)
Discussion started by: kiran425
1 Replies
7. Shell Programming and Scripting
Hello,
I have written a command n shell script :
srvctl relocate service -d t1 -s s1 -i i1 -t t1 -f
If the above command executes successfully without error I need to echo
"Service relocated successfully
and If it errors out I need to trap the errors in a file and also need to make... (1 Reply)
Discussion started by: Vishal_dba
1 Replies
8. Shell Programming and Scripting
Hi All,
I have written the following code
do
FILE_NO=$(echo $LINE|awk -F"|" '{print $1}'|tr "'" '+'|sed 's/\(.*\)\(++\)\(.*\)\(++\)/\3/')
INST_NO=$(echo $LINE|awk -F"|" '{print $2}'|tr "'" '+'|sed 's/\(.*\)\(++\)\(.*\)\(++\)/\3/')
if ]
then
... (3 Replies)
Discussion started by: yogendra.barode
3 Replies
9. Shell Programming and Scripting
Hi ,
I have written a shell script to call a java program say load_id.sh .This sh script indeed is executed implicitly in other sh script which calls 2 more sh scripts one by one. I need to check if the load_id.sh (which calls java program) is executed successfully only then continue with... (1 Reply)
Discussion started by: preema
1 Replies
LEARN ABOUT CENTOS
pmdaelasticsearch
PMDAELASTICSEARCH(1) Performance Co-Pilot PMDAELASTICSEARCH(1)
NAME
pmdaelasticsearch - elasticsearch performance metrics domain agent (PMDA)
DESCRIPTION
pmdaelasticsearch is a Performance Metrics Domain Agent (PMDA) which exports metric values from elasticsearch.
INSTALLATION
This PMDA requires that elasticsearch is running on the local host and is accepting queries on TCP port 9200
Install the elasticsearch PMDA by using the Install script as root:
# cd $PCP_PMDAS_DIR/elasticsearch
# ./Install
To uninstall, do the following as root:
# cd $PCP_PMDAS_DIR/elasticsearch
# ./Remove
pmdaelasticsearch 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/elasticsearch/es.conf
optional configuration file for pmdaelasticsearch
elasticsearch PMDA for PCP
$PCP_PMDAS_DIR/elasticsearch/Install
installation script for the pmdaelasticsearch agent
$PCP_PMDAS_DIR/elasticsearch/Remove
undo installation script for the pmdaelasticsearch agent
$PCP_LOG_DIR/pmcd/elasticsearch.log
default log file for error messages from pmdaelasticsearch
SEE ALSO
pmcd(1).
3.8.10 Performance Co-Pilot PMDAELASTICSEARCH(1)