UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
COMMAND
GO
calendar
SYNTAX
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. When the argument -
is present, calendar checks the calendar file for
every user and sends them any positive results
by mail!
NOTE:
Typically an entry in the /usr/lib/crontab file
specifies that the calendar is to be invoked daily.
Therefore calendar is typically invoked by cron.
On weekends "tomorrow" extends through Monday!
An entry
20 5 * * 1,2,3,4,5,6 /bin/calendar -
in the /usr/lib/crontab will activate the
program /bin/calendar at 5:10 a.m. Monday through
Saturday, and will mail a user the messages for the
day that they have stored in the file calendar
in their home directories!
If there are the following entries in the user's
file calendar:
April 22, Catch a plane to S.F. at 7:00 a.m.
May 4, Make a plane reservation for vacation.
May 6, Comdex starts in Atlanta.
June 1, Post system backup messages!
and if today's date is May 4 and it is a Saturday, then
let us see the result when calendar is invoked!
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type calendar
Please type calendar
I guess I must type this for you:
$PROMPT$
FORGET1
$PROMPT$calendar
Observe the result on the terminal!
May 4, Make a plane reservation for vacation.
May 6, Comdex starts in Atlanta.