Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ps --ppid $$ -o pid
- dz=$()
- while [ -n "$dz" ]
- do
- echo $dz
- dz2=""
- for dziecko in $dz
- do
- dz2="$dz2" $(ps --ppid $dziecko)
- done
- dz="$dz2"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement