home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume20 / pegboard / README < prev    next >
Encoding:
Text File  |  1989-10-26  |  1.4 KB  |  43 lines

  1. Peg is an online pegboard.  It is used to see if someone is in or
  2. out of the office and when they are expected back.  Do "make install"
  3. after you get it to compile.
  4.  
  5. There is at least 1 incompatibilty problem you may encounter, fcntl
  6. type locking is used.  The functions are "pblock()" and "pbunlock()"
  7. in "pegio.c".  "getopts()" is required, if you don't have it you can
  8. get it from an archive site.  You will want yacc if you are going to
  9. do any major additions to the source.  There is nothing in the makefile
  10. to install the man page, you will have to do that by hand.
  11.  
  12. You may find it useful for other things too, the verify "-v" option
  13. has possibilities, eg.:
  14. --------
  15. #
  16. # Mail list of meeting dates and times to users
  17. #
  18. SDATE="Monday 8"    # The first meeting, next Monday at 8:00A
  19. USERLIST=administrators
  20. SUBJECT=Meetings
  21. MESSAGE="Future meeting dates and times, please don't be late:\n"
  22.  
  23. {
  24.     echo $MESSAGE
  25.     #
  26.     # 6 monthly meetings, each on the day given in SDATE
  27.     for OFFSET in 0 4 8 12 16 20
  28.     do
  29.         peg -v $SDATE + ${OFFSET}w
  30.     done
  31. }    | mail -s $SUBJECT $USERLIST
  32. --------
  33.  
  34. Peg needs some way of recognizing dates that are holidays, so they can
  35. be skipped when the "-t" option is given.  This is not covered in the
  36. current implementation.  If someone cares to add this feature please
  37. send us the additions.
  38.  
  39. This was my first bout with yacc, and I'm sure there are better ways
  40. to do what I did.  Constructive criticism is welcome, send to:
  41.  
  42. uunet!mplex!ror
  43.