Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. # Get ppid of $child via /proc fs
  2. ```sh
  3. cat /proc/$child/stat
  4.  
  5. cat /proc/14344/stat
  6. 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
  7.  
  8. The 1234 in the above (4th field) is the PPID.
  9. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement