#!/usr/local/bin/tcsh -f
##  kill process at host machine for rsh
##  put process list in /tmp/temp before this
 ps aux | grep kasa | grep rsh | awk 'index("grep",$0) == 0 {print}' >! /tmp/temp
foreach f(`awk '{print $2}' /tmp/temp`)
	echo $f
	kill -9 $f
end
