mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
lstk: add /bin/lstk to dump most recent crashed proc
This commit is contained in:
parent
2a6e03968b
commit
13b1ea7493
1 changed files with 10 additions and 0 deletions
10
rc/bin/lstk
Executable file
10
rc/bin/lstk
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/rc
|
||||
|
||||
if(~ $#* 1)
|
||||
p=$1
|
||||
if not if(~ $#* 0)
|
||||
p=`{ps | grep Broken | awk '{print $2}' | sort -n | tail -n 1}
|
||||
if not
|
||||
p 'usage: $0 [broken]' >[2=1]
|
||||
|
||||
echo 'lstk()' | acid $p
|
Loading…
Reference in a new issue