#! /bin/csh
#
# This script works at ANL to make a list of hosts.  It uses a local routine,
# machine, that accesses a database of the local machines.  The list goes
# to standard output
machine -out host arch user memory | awk '{if ($2 == "Xterminal" ) next ; \
  if ($2 == "?") next ; if ($3 == "tapeserver") next ; \
  if ($3 == "Server") next ; if ($2 == "sun3") next ; \
  if ($2 == "i80486") next ; \
  ARCH = $2 ; if (ARCH == "AIX") ARCH = "rs6000" ; \
  if (ARCH == "ipsc") ARCH = "intelnx" ; \
  OWNER = $3 ; if (OWNER == "public") OWNER = "root" ; else \
  if (OWNER == "-") OWNER = "root" ; \
 printf("%s\t%s\t%s\t00:00-23:59 M-Su 0\t%s\t0 1 0 W\n", $1, ARCH, OWNER, $4 ) }' \
   - 
