home *** CD-ROM | disk | FTP | other *** search
/ norge.freeshell.org (192.94.73.8) / 192.94.73.8.tar / 192.94.73.8 / pub / sdf / historical / pbbs.09.25 < prev    next >
Internet Message Format  |  1995-01-27  |  1KB

  1. From smj Sat Sep 24 11:12 CDT 1994
  2. >From metronet.com!iczer Fri Sep 23 18:30:36 1994
  3. Received: by metronet.com id AA03000
  4.   (5.67a/IDA1.5hp for smj@sdf.lonestar.org); Fri, 23 Sep 1994 13:32:25 -0500
  5. Date: Fri, 23 Sep 1994 13:30:36 -0500 (CDT)
  6. From: Ted Uhlemann <iczer@metronet.com>
  7. Subject: pbbs-c
  8. To: smj@sdf.lonestar.org
  9. Message-Id: <Pine.3.87.9409231336.A2806-0100000@fohnix.metronet.com>
  10. Mime-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=US-ASCII
  12. Content-Length: 831
  13. Status: RO
  14.  
  15. here's the latest version of PinkBBS "Pro".  I hope you like it.
  16.  
  17. -----
  18. #!/bin/sh
  19. trap "" 2
  20. pbbs=/usr/local/lib/pbbs
  21. PATH=$pbbs:$PATH
  22. export PATH 
  23. ans=blah
  24. if [ "$1." = "." ]
  25. then
  26.   menu=main
  27. else
  28.   menu=$1
  29. fi
  30. while [ "$ans." != "." ]
  31. do
  32.   tput clear
  33.   mesg="TERM=$TERM"
  34.   if [ -s /usr/mail/$LOGNAME ]
  35.   then
  36.     mesg="* mail *"
  37.   fi
  38.   echo "PinkBBS \"Pro\" v1.5    ($mesg)"
  39.   echo
  40.   cat $pbbs/$menu
  41.   echo
  42.   echo  "($menu): \c"
  43.   read ans
  44.   while [ `echo $ans|wc -c` -gt 2 ]
  45.   do
  46.     sh -c "exec $ans"
  47.     echo "\n($menu): \c"
  48.     read ans
  49.   done
  50.   cmd=`grep "^\[$ans\]" $pbbs/$menu | cut -f2 -d"(" | cut -f1 -d")"`
  51.   tput clear
  52.   if [ "`echo $cmd|cut -c1-4`." = "pbbs." ]
  53.   then
  54.     exec $0 `echo $cmd|cut -f2 -d" "` $menu $2 $3 $4 $5 $6
  55.   else
  56.     sh -c "exec $cmd"
  57.   fi
  58. done
  59. if [ "$2." != "." ]
  60. then
  61.   exec $0 $2 $3 $4 $5 $6
  62. fi
  63.  
  64.  
  65.  
  66.