#!/bin/sh # Created by makeallgrade Fri Jul 30 12:00:00 EDT 1999 -- don't tamper sysbin=/usr/localbin:/usr/local/gnu/bin:/bin:/usr/bin:/usr/lib otherbin=/home/mom4/bynum/bin:/home/mom4/bynum/bin PATH=$sysbin:$otherbin:. classtitle="Sample Namelist" debug= listflag= msglag= while true do case $1 in "-d") debug="-d" shift;; "-l") listflag="-l" shift;; "-m") if (test ! -f $2) then echo "Message file \"$2\" does not exist!" exit fi msgflag="-m $2" shift shift;; *) break;; esac done case $listflag in -l) cat /dev/null > listing.out ;; esac # Sample Namelist # login id email address Full name mailgrades $debug $msgflag $listflag "Attila The Hun" attila@widomaker.com "$classtitle" mailgrades $debug $msgflag $listflag "Caligula Gaius Caesar" caligula@aol.com "$classtitle" echo all grades sent