Thanks for your help.
I am having problem getting actual PID of process. Your open command returns the PID which is less than 1 of actual PID.
for ex. PID of my actual process is 1923, i get 1922 which i discovered to be a zombie process.
Can you please tell me what should i do to get the actual process id ?
thanks in advance.