From 13b1ea74932158069ab1f4c584db81477d9f3551 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Mon, 14 Aug 2023 03:50:01 +0000 Subject: [PATCH] lstk: add /bin/lstk to dump most recent crashed proc --- rc/bin/lstk | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 rc/bin/lstk diff --git a/rc/bin/lstk b/rc/bin/lstk new file mode 100755 index 000000000..a4464c9e5 --- /dev/null +++ b/rc/bin/lstk @@ -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