Help for this page

Select Code to Download


  1. or download this
    sleep 10 | perl -e '$ppid=getppid();$sibs=`pgrep -P $ppid`;print("MY P
    +ID: $$\nPARENT: $ppid\nSIBLINGS: $sibs\n")'
    MY PID: 79496
    PARENT: 563
    SIBLINGS: 79495
    
  2. or download this
    echo test | perl -e '$ppid=getppid();$kids=`pgrep -P $ppid`;print("MY 
    +PID: $$\nPARENT: $ppid\nSIBLINGS: $kids\n")'
    MY PID: 79493
    PARENT: 563
    SIBLINGS: