Hi Friends,
The problem has a simple solution but i am not able to do that, need your help
dmadmin 9558 9511 0 Jan 02 ? 0:00 ./documentum -docbase_name secm1 -security acl -otrace_authentication -init_fil
dmadmin 9552 9511 0 Jan 02 ? 11:27 ./documentum -docbase_name secm1 -security acl -otrace_authentication -init_fil
dmadmin 9846 9511 0 Jan 02 ? 1:57 ./dm_agent_exec -docbase_name secm1.secm1kandocus02 -docbase_owner dmadmin -sle
dmadmin 9511 1 0 Jan 02 ? 2:13 ./documentum -docbase_name secm1 -security acl -otrace_authentication -init_fil dmadmin 9847 9511 0 Jan 02 ? 1:13 ./documentum -docbase_name secm1 -security acl -otrace_authentication -init_fil
dmadmin 9556 9511 0 Jan 02 ? 0:00 ./documentum -docbase_name secm1 -security acl -otrace_authentication -init_fil
dmadmin 9554 9511 0 Jan 02 ? 0:00 ./documentum -docbase_name secm1 -security acl -otrace_authentication -init_fil
As you can see a set of processes, the root process is the "dmadmin 9511 1 "
The only problem is how can i filter it out in my script. I am not very good in awk, can you guys help, a simple grep is looking up for everything which has 1 in it. I just need the line which has "9511 1 ". Basically need to filter out this line which has the Root PID.
After that i can use the awk to print the pid number.
thanks