---------- Post updated at 03:40 PM ---------- Previous update was at 03:30 PM ----------
Whether this will work fine?
---------- Post updated at 11:08 PM ---------- Previous update was at 03:40 PM ----------
HI ,
I will be getting 2 cold_daily , 2 HPII_val , 2 HPII_import sometimes (very rare case). How to get the number of processes running in its name . Can someone edit the above code and make it perfect Really this is very easy but i don have enuf knowledge
Last edited by Franklin52; 07-23-2013 at 10:32 AM..
Reason: Please use code tags
This leads nowhere. Please post exactly and completely what you expect to get as input conditions and how the script should react. E.g. two HPII_val and one HPII_import --> print WHAT?
We will be using
which will display the output like ./HPII_val and ./HPII_import . Sometimes n number of ./HPII_val will be running or n number of ./HPII_import will be running. So i need to get the number of processes running in the name of ./HPII_val and ./HPII_import
and
if ./HPII_val or ./HPII_import is missing. I should get the mail like "HPII is not running" and if it is fine then i should get the output mail like " n number of HPII_val (or)HPII_import is running". Same for COLD , POST, BES. Am i clear now?
---------- Post updated 07-25-13 at 04:41 AM ---------- Previous update was 07-24-13 at 03:07 PM ----------
Hi ,
Can someone help me by giving the exact scripting idea to get my expected output.
1)
./HPII_val and ./HPII_import if presented i should get the result in the mail like "HPII is fine", if not i should get response like "Please check HPII services"
2)
if ./cold_daily.ksh and cold_3770 is presented i should get the result in the mail like "COLD is fine", if not i should get response like "Please check COLD services"
3)
if ./postindex_daily.ksh is presented i should get the result in the mail like " POST INDEX is fine" , , if not i should get response like "Please check POST INDEX services"
4)
if bes_commit is presented i should get the result in the mail like "BES is fine" , if not i should get response like "Please check BES services"
I tried the below code, but am not getting the expected output:
Someone please help me out to complete the script before tomorrow. your help is highly appreciated
Hello,
I have a question regarding the usage statement of a script.
I have 2 parameters "--pto" and "--pto_list". To start the script I will need one of them. Both together are not possible.
How this would be printed out within a usage statement?
My suggestion would be:
Usage:... (4 Replies)
Use and complete the template provided. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have to find all the files where the function sequentialInsert is called and the directory is ~cs252/Assignments/commandsAsst/project
2.... (2 Replies)
Hi,
I need to carry out the back up of the data if exists...(file size not equal to zero)
i tried in this way but it is not successful....where am making the mistakes? and if possible can i use case syntax in place of "if"
#!/bin/ksh
filename=`TZ=CST+24 date +%Y%m%d`
ZERO=0... (3 Replies)
my file contains
xxabced.p dlksfad;
dflsdkjflkds flksdjflkdioewf
erfsdlkfjsdla;
dlkfjsd;lfkj msgdadf.p dslk kdjflksdjfl;asdfasdfjkljl
fdsf;jd ppuskldf.p
i want the output is
xxabced.p
msgdadf.p
ppuskldf.p
Can any one give the command? (1 Reply)
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Hello,
I am trying to use grep to locate multiple uses of the same word in the same line. The word has to be 3+ char, upper or lower or both.
I tried this code
<code>
grep \({3,}\)*\1 i*
</code>
and i turned out zero results. Any ideas?
____________________________________________... (5 Replies)
Hi all!
I'm using CentOS 5.2 with KDE.
Is it possible to get a processname/cmd of a terminated process (= PID not present with PS-command) ?
Are the processnames/scriptnames logged somewhere? (I did not find them in /var/log/messages) (5 Replies)
Hello,
I have a list in .txt format of email addresses and I need to extract just a specific domain ...
The list format is like:
"123456";"user@domain.com";"email";"john";"name"
"123457";"user2@domain.com";"email";"john";"name"
"123458";"user3@domain.com";"email";"john";"name"... (7 Replies)