script

Write a script which takes a PID as an argument and prints PID's of all its GRANDchildren and grandgrandchildren.
Example:

$ printthem 3545
3546
3548
3666
Registered users can post here. Sign in or register to post.