#!/bin/bash
# This is bash because it uses $() and other bash-isms (kshisms)
# mount.nores -t nfs -o ro,nfsvers=2,nores ellie:/home/zaitcev /mnt/test/$i

# REQUIRES HAND EDITING

i=0
while [ $i != 1299 ]; do

  # SELECT ONE
  # mkdir /mnt/test/$i
  # mount.nores -t nfs -o ro,nfsvers=2,nores elanor:/q/test /mnt/test/$i
  # mount -t nfs -o ro,nfsvers=2 ellie:/vol/vol0/home/zaitcev /mnt/test/$i
  umount /mnt/test/$i

  if [ $? != 0 ]; then
    echo "something failed for $i" >&2
    exit 1
  fi
  i=$(expr $i + 1)
done
