process id of infa Domain


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting process id of infa Domain
# 1  
Old 08-02-2011
process id of infa Domain

Hi All,

I am trying to get the process id of informatica Domain

I used the below query :
Code:
pidof DINFA_DOMAINS_FILE

its not returing any result,

when i try this

Code:
ps -ef | grep DINFA_DOMAINS_FILE

the result is displayed as below with process id
Code:
xxxx  912     1  3 Jul24 ?        06:42:15 /apps/informatica/node1/PC861/java/bin/java -Djava.awt.headless=true -Duser.dir=/apps/informatica/node1/PC861/server/tomcat/bin -DINFA_HOME=/apps/informatica/node1/PC861 -DINFA_DEV_LOG_DIR= -DINFA_DOMAINS_FILE=/apps/informatica/node1/PC861/domains.infa -Djava.endorsed.dirs=/apps/informatica/node1/PC861/server/tomcat/common/endorsed -classpath :/apps/informatica/node1/PC861/server/tomcat/bin/bootstrap.jar:/apps/informatica/node1/PC861/server/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/apps/informatica/node1/PC861/server/tomcat -Dcatalina.home=/apps/informatica/node1/PC861/server/tomcat -Djava.io.tmpdir=/apps/informatica/node1/PC861/server/tomcat/temp -Xmx1024m -Xmx512m org.apache.catalina.startup.Bootstrap start
xxx  30645 26176  0 23:49 pts/4    00:00:00 grep DINFA_DOMAINS_FILE

However the when i used
Code:
pidof DINFA_DOMAINS_FILE

nothing is displayed...

Last edited by Franklin52; 08-02-2011 at 03:35 PM.. Reason: Please use code tags for data and code samples, thank you
# 2  
Old 08-02-2011
Yes, because DINFA_DOMAINS_FILE is not a process, just a part of its name. You can use
Code:
pgrep DINFA_DOMAINS_FILE

if you have it or
Code:
ps -ef | grep DINFA_DOMAINS_FILE | grep -v grep | awk '{print $2}'

This User Gave Thanks to yazu For This Post:
# 3  
Old 08-02-2011
Thanks for the quick reply i tried with
pgrep its not displaying any result....


I have used this it was giving me all the pid which are having the domain
ps -ef | grep DINFA_DOMAINS_FILE | grep -v grep | awk '{print $2}'

I wanted to get this pid of the DINFA_DOMAINS_FILE and kill that process.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Command to get exact tomcat process I am running ignoring other java process

Team, I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list. How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies

2. Shell Programming and Scripting

Monitoring processes in parallel and process log file after process exits

I am writing a script to kick off a process to gather logs on multiple nodes in parallel using "&". These processes create individual log files. Which I would like to filter and convert in CSV format after they are complete. I am facing following issues: 1. Monitor all Processes parallelly.... (5 Replies)
Discussion started by: shunya
5 Replies

3. Shell Programming and Scripting

Script for Rebooting infa servers

Hi, I am new to unix, trying to learn things I have written unix script to stop Informatica server and re-start them. In order to stop the servers i need to check the below 1. Check if the infa servers are already running. 2. If the servers are already running then, i need to stop the servers.... (0 Replies)
Discussion started by: ch33ry
0 Replies

4. Shell Programming and Scripting

script to monitor the process system when a process from user takes longer than 15 min run.

get email notification from from system when a process from XXXX user takes longer than 15 min run.Let me know the time estimation for the same. hi ,any one please tell me , how to write a script to get email notification from system when a process from as mentioned above a xxxx user takes... (1 Reply)
Discussion started by: kirankrishna3
1 Replies

5. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

6. Windows & DOS: Issues & Discussions

How to: Linux BOX in Windows Domain (w/out joining the domain)

Dear Expert, i have linux box that is running in the windows domain, BUT did not being a member of the domain. as I am not the System Administrator so I have no control on the server in the network, such as modify dns entry , add the linux box in AD and domain record and so on that relevant. ... (2 Replies)
Discussion started by: regmaster
2 Replies

7. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

8. Solaris

Domain name

Hi, How to set domain name in solaris 5.10 ? Also what is the command to see the domain name ? (2 Replies)
Discussion started by: bang_dba
2 Replies

9. UNIX for Dummies Questions & Answers

Domain

I am a web programmer and am fluent in site construction and etc. I am planning to register and use a domian name on a server hosted by another company. Is it necessary for me to learn Unix (I have no Unix experience) to operate with another server? Thanks (1 Reply)
Discussion started by: wcc9968
1 Replies
Login or Register to Ask a Question