diff --git a/rc/bin/ukill b/rc/bin/ukill new file mode 100644 index 000000000..f2773bbd5 --- /dev/null +++ b/rc/bin/ukill @@ -0,0 +1,12 @@ +#!/bin/rc +rfork e +if(~ $#1 0){ + USER=`{cat /dev/user} +} +if not { + USER=$1 +} +PROCS=`{ps | grep $USER | awk '{print $2}'} +for(i in $PROCS){ + echo '@{echo kill>/proc/'^$i^'/note}' +}