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