#!/bin/csh

echo -n 'Rebooting...'
rsh $1 'reboot;reboot' &
sleep 10
ps auxw | grep 'reboot;reboot' | awk '{print "kill -9",$2}' | csh


