home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume17 / contest-prog / part01 / scoreasincorre < prev    next >
Encoding:
Text File  |  1989-02-06  |  470 b   |  25 lines

  1.     echo "team no. ?"
  2.     read qq
  3.     t=team$qq
  4.     echo "problem no. ?"
  5.     read q
  6.     p=prob$q
  7.     seconds=`seconds`
  8.     echo "0" $qq $q $seconds >>scoreboard
  9.  
  10.     echo not correct
  11.     echo if necessary, you must manually change the appropriate
  12.     echo \"0\" in scoreboard
  13.     echo  "do you wish to mail them an explanatory note? "
  14.     read zork
  15.     case $zork in
  16.         y) 
  17.         echo "mail $t"
  18.         mail -s "$p" $t
  19.         ;;
  20.         *) echo "your $p not correct">failure$$
  21.         mail -s "$p" $t<failure$$
  22.         rm -f failure$$
  23.         ;;
  24.     esac
  25.