ref: 13b1ea74932158069ab1f4c584db81477d9f3551
parent: 2a6e03968b9227e91b2df181fe8461d719395359
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Aug 13 23:50:01 EDT 2023
lstk: add /bin/lstk to dump most recent crashed proc
--- /dev/null
+++ b/rc/bin/lstk
@@ -1,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