Guest User

Untitled

a guest
Sep 18th, 2019
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. ps --ppid $$ -o pid
  4. dz=$()
  5. while [ -n "$dz" ]
  6. do
  7.     echo $dz
  8.     dz2=""
  9.     for dziecko in $dz
  10.     do
  11.         dz2="$dz2" $(ps --ppid $dziecko)
  12.     done
  13.  
  14.     dz="$dz2"
  15. done
RAW Paste Data