Thanks Methyl/Ahamed/Corona/Balajesyri !!
i appreciate your help.. these commands worked fine.. got what i was looking for
dont mind if i bug you more :P
---------- Post updated at 12:33 PM ---------- Previous update was at 12:27 PM ----------
@Corona
You are right .. there will be only one process with a certain PID.. but that process could have some child process and if grep for PID.. all will be listed,that is the process itself and the child process of that process..
and if you grep it along with PPID you will get the desired result.. thats what i was looking for