#!/usr/local/bin/tcsh -f
@ n = 0
foreach f(`cat $argv[1]`)
@ n += 1
 echo $n " " $f
 ./seeifdead $f
 if( $status == 0 ) then 		
	 rsh $f ps aux | grep kasa2 > Running
	 cat Running | grep cosmos
	 cat Running | grep call
	 cat Running | grep cas
  else
	echo $f seems to be dead
  endif	
end
