#!/bin/tcsh

foreach x (`ls $*`)
  if (-l $x && ! -e `readlink $x`) then
      echo "`date`	Dangling link:  $x"	# Doesn't point anywhere, so can't scan it.
  else
    scan-and-notify-on-eas $x cat
    echo "`date`	$x" >>! ~/EAS.scanned
  endif
end
