03-24-2009
21,
0
Join Date: Oct 2008
Last Activity: 29 October 2010, 7:38 AM EDT
Posts: 21
Thanks Given: 0
Thanked 0 Times in 0 Posts
ps -ef | grep java | wc -l
Hi all i have a syntax , Can some one please give me a script
1, I need to check and execute the command.
ps -ef | grep java | wc -l
5
Output should me 5
if not have to run the command:
ps -ef | grep java
the following java process should be run (java1, java2, java3, java4., java5).
If any of the above process is not runnning that particular daemom must start under the dir
/test/java/scripts/daemons
./startjava1
./startjava2
./startjava3
./startjava4
./startjava5
please need the urgent reply
thaanks
surseh
Last edited by suresh_krish; 03-24-2009 at 01:35 AM..