Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Get ppid of $child via /proc fs
- ```sh
- cat /proc/$child/stat
- cat /proc/14344/stat
- 14 (kblockd/0) S 1234 1 1 0 -1 41024 0 0 0 0 0 2336 0 0 10 -5 1 0 258 0 0 4294967295 0 0 0 0 0 0 2147483647 65536 0 0 0 0 17 0 0 0
- The 1234 in the above (4th field) is the PPID.
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement