0707070000020026171006660001460001440000010270500363622276500000500000000003Size60 0707070000020001651006660001460001440000010167760363622312600000600000000243Files./Size ./Files ./Install ./Name ./Remove ./calendar ./calprog ./crontab.cal ./egrep ./fgrep ./MAKEflop ./MAKEcpio ./Calendar.man ./CAL.form ./Office ./calendar.sh 0707070000020011151007770001460001440000010036370363622553200001000000004200Install# # Move all relevant files to their destination # BIN=/usr/bin LIB=/usr/lib rm -f $BIN/egrep $BIN/fgrep # get rid of old versions chown bin calendar.sh calendar egrep fgrep chgrp bin calendar.sh calendar egrep fgrep chmod 755 calendar.sh calendar egrep fgrep chmod 666 CAL.form ln calendar $BIN ln calendar.sh $BIN ln egrep $BIN ln fgrep $BIN ln CAL.form $UA chown bin calprog chgrp bin calprog chmod 755 calprog ln calprog $LIB NAME="UNIXCAL" LISTDOCS="Calendar.man" FOLDER=/u/$LOGNAME/Filecabinet/DOCS if [ -d $FOLDER ] then message -i "Document file(s) called $LISTDOCS will be placed in your DOCS folder.\n\nThese files contain information about $NAME.\n\nTouch to continue." else message -i "A folder called DOCS is being created in your Filecabinet. Document file(s) $LISTDOCS will be placed there.\n\nThese files contain information about $NAME.\n\nTouch to continue." mkdir $FOLDER chown $LOGNAME $FOLDER fi DEST=${FOLDER} for i in $LISTDOCS do ln $i ${DEST}/$i chown $LOGNAME ${DEST}/$i done cat <> /usr/lib/crontab echo "\n\nCheck will be done at $ANS:00 \n Edit /usr/lib/crontab if you wish to change it later." ;; *) echo "\n\nCheck will be done at 1:00 AM - edit /usr/lib/crontab to change" cat crontab.cal >> /usr/lib/crontab ;; esac uaupd -r "Reminders" -a Office Office message -i "To add an item, and thereby receive mail on it the day before and on that day, simply use the Reminders selection which will appear in your Office.\n\nTouch to continue ..." 0707070000020032771006660001460001440000010056420363622301100000500000000062NameCalendar, UNIX reminder service - from THE STORE! 0707070000020033411007770001460001440000010057710363622454700000700000000332Remove BIN='/usr/bin' LIB='/usr/lib' LIBLIST='calprog' cd $BIN rm -f calendar calendar.sh # DON'T remove egrep and fgrep cd $LIB rm -f $LIBLIST ed - /usr/lib/crontab <<-ETX /calendar/d w q ETX uaupd -r "Reminders" Office 0707070000020033271007770001460001440000010226440362620041700001100000001253calendar# calendar.sh - calendar command, uses /usr/lib/calprog # SCCS: @(#)calendar.sh 1.5 PATH=/bin:/usr/bin _tmp=/tmp/cal$$ trap "rm ${_tmp}; trap '' 0; exit" 0 1 2 13 15 /usr/lib/calprog > ${_tmp} case $# in 0) if [ -f calendar ]; then egrep -f ${_tmp} calendar else echo $0: `pwd`/calendar not found fi;; *) cat /etc/passwd | \ sed 's/\([^:]*\):.*:\(.*\):[^:]*$/_dir=\2 _user=\1/' | \ while read _token; do eval ${_token} # evaluates _dir= and _user= if [ -s ${_dir}/calendar ]; then egrep -f ${_tmp} ${_dir}/calendar 2>/dev/null \ > /tmp/calendar.$$ if [ -s /tmp/calendar.$$ ]; then mail ${_user} < /tmp/calendar.$$ fi fi done;; esac exit 0 0707070000020026071007770001460001440000010225150362620041700001000000004316calprogRX  .text .data @.bss .lib /< N1X OQ./HJf/H#0N/N1x0<N@NVHnN1X @-H. n (R/ ("| /1/< N1 N^NuNVHnN1X.NHnN1X @ ( g g` Q.NjQ.NZQ.NJN^Nu@(#)calprog.c 1.4 B I P W ^ e l s z [Jj]an[Ff]eb[Mm]ar[Aa]pr[Mm]ay[Jj]un[Jj]ul[Aa]ug[Ss]ep[Oo]ct[Nn]ov[Dd]ec(^|[ (,;])((%s[^ ]* *|0*%d/|\*/)0*%d)([^0123456789]|$) 0707070000020026131006660001460001440000010102270362620041700001400000000037crontab.cal0 1 * * * /usr/bin/calendar - 0707070000020026141007770001460001440000010232730362620042000000600000023474egrepRX < .text .data < @.bss < <.lib  /< N1X OQ./HJf/H#0N/N1x0<N@NV./< /<0N1Pp.N1xN^NuNVH NHHJg g` $gh (g~ )gt *gR +gR .gb ?gJ [g^ \gV ^g |fP <L N^Nut `: <` <` < `HH` <`p`-|B 9 R # N ^f-|NJfNL -fhJo` 9 "| J1gLNgD 9 "| 1`, ^ mNR 9 R "| Rm`* ^ mNv 9 R "| RNH ]fT 9 "|  .`N fNHH# 8 <`NVHJ g> y Sm y "hRp` . N1$pf pLN^Nu y R HH$ `NV. /<0N1Xp.N1xN^NuNV ^ mNp 9 "| I# 9 "| O4B 9 "| TB 9 R N^NuNVH.N$ "| T#  LN^NuNV ^ mN 9 "| I# 9 "| O4#  9 "| T# . "| Z$#  .#  9 R N^NuNV ^ mN` 9 "| I# 9 "| O4#  9 "| TB . "| Z$#  9 R N^NuNV. (/<0N1Xp.N1xN^NuNVH ."| O4JfDB t` "| BR o.Nj./< _NXLN^Nu ."| TJf ."| O4` ."| O4.Nn ."| T.NZ`NV0HB p-@`"| BR .䰹 o 9 S.NJf$ 9 "| #R  I y H"n!i n h (f y H| y H# Hf` n-hf$j g `.LN^NuNVH$.&. g$J Ig( r f.N(.Nf pLN^Nup`NVH$.pampzn LN^NupAmpzn  `p`@(#)fgrep.c 1.3[ -bcilnvx ] [ -e exp ] [ -f file ] [ strings ] [ file ] ...bcie:f:lnvxrfgrep: can't open %s usage: fgrep %s rfgrep: can't open %s %s %s:%d:%ld:%s:%ld wordlist too large 0707070000020023521007770001460001440000010255330362620042100001100000000060MAKEflopcat Files | cpio -ocBv > /dev/fp021 dismount -f 0707070000020026121007770001460001440000010255340362634300600001100000000044MAKEcpiocat Files | cpio -ocBv > UNIXCAL+IN 0707070000020026161006660001460001440000010255350363554725200001500000002324Calendar.man CALENDAR(1) UNIX System V CALENDAR(1) NAME calendar - reminder service SYNOPSIS calendar [ - ] DESCRIPTION Calendar consults the file calendar in the current directory and prints out lines that contain today's or tomorrow's date anywhere in the line. Most reasonable month-day dates such as ``Aug. 24,'' ``august 24,'' ``8/24,'' etc., are recognized, but not ``24 August'' or ``24/8''. On weekends ``tomorrow'' extends through Monday. When an argument is present, calendar does its job for every user who has a file calendar in the login directory and sends them any positive results by mail(1). Normally this is done daily by facilities in the UNIX operating system. FILES /usr/lib/calprog to figure out today's and tomorrow's dates /etc/passwd /tmp/cal* SEE ALSO mail(1). BUGS Your calendar must be public information for you to get reminder service. Calendar's extended idea of ``tomorrow'' does not account for holidays. 0707070000020026211006660001460001440000010255410363564075300001100000000701CAL.form# Form = Enter new reminder (edit $HOME/calendar to delete): Label = Entering Reminder Information Name = Date : Prompt = enter MM/DD or Month Day - (3/5 or March 5) Frow = 0 Ncol = 4 Fcol = 20 Flen = 20 Name = Text: Prompt = Enter the reminder text you wish sent to you on that date. Frow = 1 Ncol = 4 Fcol = 20 Flen = 50 Name = Text: Prompt = Enter the reminder text you wish sent to you on that date. Frow = 2 Ncol = 4 Fcol = 20 Flen = 50 0707070000020013611006660001460001440000010304430363622422200000700000000213OfficeName=Reminders Default = Run Run = SH -wd /usr/bin/calendar.sh Prompt = You will receive mail on this item on that day and the day before. 0707070000020026201007770001460001440000010255400363564024700001400000000712calendar.shwhile true do RET=`shform $UA/CAL.form` if [ "$?" != "0" ] then message "The form files necessary to input an appointment have not been found. Suggest you remove this application and re-install it." exit fi eval set $RET if [ "$1" = "Cancel" ]; then exit; fi if [ "$1" = "Enter" ] then break fi done if [ "$2" ] then echo "$2 $3 $4" >> ${HOME}/calendar else message "You MUST provide a date for the reminder. Please try again.\n\n" fi 0707070000020026201007770001460001440000010255400363564024700001300000000000TRAILER!!!@(#)fgrep.c 1.3[ -bcilnvx ] [ -e exp ] [ -f file ] [ strings ] [ file ] ...bcie:f:lnvxrfgrep: can't open %s usage: fgrep %s rfgrep: can't open %s %s %s:%d:%ld:%s:%ld wordlist too large 0707070000020023521007770001460001440000010255330362620042100001100000000060MAKEflopcat Files | cpio -ocBv > /dev/fp021 dismount -f 0707070000020026121007770001460001440000010255340362634300600001100000000044MAKEcpiocat Files | cpio -ocBv > UNIXCAL+IN 0707070000020026161006660001460001440000010255350363554725200001500000002324Calendar.man CALENDAR(1) UNIX System V CALENDAR(1) NAME calendar - reminder service SYNOPSIS calendar [ - ] DESCRIPTION Calendar consults the file calendar in the current directory and prints out lines that contain today's or tomorrow's date anywhere in the line. Most reasonable month-day dates such as ``Aug. 24,'' ``august 24,'' ``8/24,'' etc., are recognized, but not ``24 August'' or ``24/8''. On weekends ``tomorrow'' extends through Monday. When an argument is present, calendar does its job for every user who has a file calendar in the login directory and sends them any positive results by mail(1). Normally this is done daily by facilities in the UNIX operating system. FILES /usr/lib/calprog to figure out today's and tomorrow's dates /etc/passwd /tmp/cal* SEE ALSO mail(1). BUGS Your calendar must be public information for you to get reminder service. Calendar's extended idea of ``tomorrow'' does not account for holidays. 0707070000020026211006660