Hi all,
I have a file of the following format -
EXPRPT:SCN:1.1706E+10:SEQ_START:121652:SEQ_END:121664:0
( This file name is variable and changes daily)
Now in the same directory I have another set of files of the format -
EXPRPT.log.0001.0000121669
Now what I am trying to do is to ... (2 Replies)
here is a small script:
if ; then
echo please enter an argument
fi
if [ "$1" = "tom"; then
a=$1
echo $a
fi
here is my question. if the script name is j.sh and I run it : j.sh from shell prompt: without a parameter: it prints please enter an argument but if I go with . j.sh (current... (1 Reply)
Hi,
I am new to unix shell scripting. I just want a little script to check the no. of processes are equal to 8, then echo a successful message otherwise echo a unsuccessful message. Please help.
Thanks. (3 Replies)
The following Script takes each extension and determine what category it
belongs and then moves it into a directory based on the extension.
(for eg. 1.sh, 5.sh, 9.sh together; 4.csh, 120.csh, 6.csh together and 7.ksh, 2.ksh, 59.ksh together) and moves them to their respective directories viz.... (2 Replies)
I need to write a small shell script which does the following :
I have a file : root/var/log/ocmp/ocmpclient.log
This is a log file which is continuosly getting updated . I have to keep looking into this file all the time. I have to look for four keywords, "File Detected", File Sending",... (2 Replies)
Hello all,
i have a batmail process running on my machine(java process).
i just need a script we should detect whether the batchnail is running or not.If not it should restart it.
Can anyone assist me on this? (1 Reply)
Hello all, could somebody help..?
I have following 6 files (with white spaces in their names)
This is file
This is file1
This is file2
This is file3
This is file4
This is file5
This is file6
I tried to run the below script, and it did not give me desired ouput..
$ for i in `ls -1`
>... (7 Replies)
Hi I have the below file
Name=abc
Yr=2011
Mon=05
My script should be in such a way that whenever I run it then
Month should increment by 1 and if the month is 12 then when
I run the script then year should incremented by 1 and month
Should become 01(I.e jan)
Thanks for the help in... (6 Replies)
Hi Guys,
I need to understand below scipt:-
-bash-3.00$ cat rsync-copy.ksh
#!/usr/5bin/ksh
batch <<%EOF%
echo "/usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync -a --stats /usr/openv/ /OpenvBCK" > openv.LOG
# CG /usr/local/bin/rsync ... (6 Replies)
Discussion started by: manalisharmabe
6 Replies
LEARN ABOUT CENTOS
pmdanamed
PMDANAMED(1) Performance Co-Pilot PMDANAMED(1)NAME
pmdanamed - BIND (named) PMDA
DESCRIPTION
pmdanamed is a Performance Metrics Domain Agent (PMDA) which exports metric values from the BIND DNS server. Further details on BIND can
be found at http://isc.org/.
INSTALLATION
If you want access to the names and values for the named performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/named
# ./Install
If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/named
# ./Remove
pmdanamed 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
/var/named/data/named_stats.txt
statistics file showing values exported from named
/var/named/chroot/var/named/data/named_stats.txt
chroot variant of statistics file showing values exported from named
$PCP_PMDAS_DIR/named/Install
installation script for the pmdanamed agent
$PCP_PMDAS_DIR/named/Remove
undo installation script for the pmdanamed agent
$PCP_LOG_DIR/pmcd/named.log
default log file for error messages from pmdanamed
SEE ALSO pmcd(1), named.conf(5), named(8).
3.8.10 Performance Co-Pilot PMDANAMED(1)