Help for this page

Select Code to Download


  1. or download this
     pid=$(ps -l -p $pid | grep -v PPID | perl -ane 'print $F[4]')
    
  2. or download this
    ppidi=4
    [ $(uname) = 'Cygwin ] && ppidi=1
    ...
    
     pid=$(ps -l -p $pid | grep -v PPID | \
    perl -ane 'print $F[$ARGV[0]]' $ppidi);
    
  3. or download this
    Can't open 1: No such file or directory.