Debian Codegraph @

configs/bops

raw ◀ ▶
1 Debian patch touch this file
1 #!/usr/bin/env bosh
2
3 command{{
4 function pad() {
5 s="$1";
6 while [ ${#s} -lt 5 ]; do s=" $s"; done;
7 echo "$s";
8 };
9 PID="$(pad $$)";
10 BOSHPID="$(pad $BOSHPID)";
11 BOSHPPID=$(pad $BOSHPPID);
12 ps -o pid,ppid,tty,stat,time,cmd x | grep -v -e "$PID" -e "$BOSHPID" -e "$BOSHPPID"
13 }}
14
15 refresh=1
16 header=1
17
18 #autorefresh: 5
19
20 preaction{{
21 PID=$(echo $BOSH | cut -f1 -d' ');
22 }}
23
24 k=[!] kill $PID
25 9=[!] kill -9 $PID
26 s=[!:signal] kill -s "$BOSHPARAM" $PID
27
•28 l=[.] lsof -p $PID
29 r=[.] chrt -p $PID
30 m=[.] pmap $PID
31 t=[.] pstack $PID