#! /usr/local/bin/tcsh

foreach student ( \
alkahn \
amorees \
andy \
anus \
azamian \
beaker \
bedlam \
begriffi \
bhayden \
bigfred \
brooking \
bstamets \
cholyko \
cjbrown \
coco \
corydon \
csalaver \
dchao \
dcunning \
desta \
dhavlik \
dhhuang \
djed \
ekrause \
ellie \
erikl \
escapecu \
eschafer \
finegirl \
gmac \
gms \
hsu \
jamchoi \
jaska \
jcsnod \
jennyd \
jeremy \
joemc \
jono \
jtreble \
jumana \
jyanosik \
kalayne \
kgsanner \
leb \
linds \
little1 \
mlindsey \
moebetta \
mwylie \
nels \
nwjiii \
park \
parrish \
petrov \
philipb \
phool \
richardh \
rob_p \
robo \
schiff \
sgandy \
sheffy \
sintlant \
slhe \
smcclure \
sorola \
spg \
sreddoch \
stewbeck \
thump \
tnb \
tricia \
vics \
wford \
whitney \
wormwood \
wylie \
zuck \
)
  echo Examining $student...
  set p = /home/$student/comp210/final
  if (! -e /home/$student) echo "*** ***" no dir for $student
  if (! -e $p) echo "***" no comp210 dir for $student
  set ex = $p/connect5
  set ss = $p/connect5.ss
  if ((-e $ex) && (! -x $ex)) echo "***" non-executable $ex
  if ((-e $ss) && (! -r $ss)) echo "***" non-readable $ss
  if ((! -x $ex) && (! -r $ss)) echo "***" $student has neither
  if (-x $ex && -r $ss) echo "***" $student has both

  if (-x $ex) echo $student in exec
  if (-r $ss) echo $student in scheme
  end
