how to find the chid process id from given parent process id

how to find the chid process id from given parent process id.... (the chid process doesnot have sub processes inturn)

Try...

ps -ef|awk -v p=$PPID 'p==$3{print $2}'

or simply try ptree my_PID

If the OS has the ptree command that is.....