Lines Matching refs:PID
682 function pid()
686 local PID=`adb shell ps | fgrep $1 | sed -e 's/[^ ]* *\([0-9]*\).*/\1/'`
687 echo "$PID"
689 echo "usage: pid name"
697 adb shell echo '""' '>>' /data/anr/traces.txt && adb shell chmod 776 /data/anr/traces.txt && adb shell kill -3 $(pid system_server)
722 local PID
726 PID="$3"
728 PID=`pid $3`
731 adb shell gdbserver $PORT --attach $PID &
738 echo " gdbserver $PORT --attach $PID"
883 echo "Usage: runhat [ -d | -e | -s serial ] target-pid"