#!/bin/csh -f
#
# rusersx
# 
# do an 'rusers' using host data file
#
# calling sequence:
#   ruse 		[default
#   ruse SITENAME 
#
# History:
#   25-jul-1995 (SLF) - convert 'rusers' to use data file
#
if ($#argv < 1) then
   if (-e ~/.ruse) then
      set file = "~/.ruse"
   else
      set file = "$ys/gen/data/isas.hosts"
   endif
else
   set file = "$ys/gen/data/"$1".hosts"
endif

if (!(-e $file)) then
   echo "No hosts file "$file" found..."
   exit
endif

set list=`cat $file`

foreach host ($list) 
   echo "------------ "$host" -------------"
   finger @$host
end

exit

