Child Process Name

Hi ,

I want to find out the child process name given its PID. I have used the ps command but it displays the parent process name against child PID.

Is there any way to find out name of child program executing under any parent program?

????

uv04:/home/vbe $ echo $$
2334736
uv04:/home/vbe $ sh         # is child PPID:2334736
uv04:/home/vbe $ echo $$
2392180
uv04:/home/vbe $ ps -ef|grep 2334736
     vbe 2334736 1163282   0   Nov 18  pts/0  0:00 -ksh 
     vbe 2392180 2334736   0 18:13:28  pts/0  0:00 sh 
uv04:/home/vbe $