Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ calendar(1) — NEWS-os 4.1C

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

at(1)

cron(8)

mail(1)

setlocale(3)

CALENDAR(1)  —  NEWS-OS Programmer’s Manual

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 Dec. 7, december 7, 12/7’ , etc., are recognized, but not 7 December or 7/12.  If you give the month as ∗ with a date, i.e.  ∗ 1, that day in any month will do.  On weekends ‘tomorrow’ extends through Monday. 

When an argument is present, calendar does its job for every user who has a file calendar in his login directory and sends him any positive results by mail(1).  Normally this is done daily in the wee hours under control of cron(8). 

LANG should be set in the file ~/.userinfo to use the character code different from that defined in /etc/sysinfo.  LC_CTYPE may be used instead of LANG (see also setlocale(3)). 

The file calendar is first run through the C preprocessor, /lib/cpp, to include any other calendar files specified with the usual #include syntax. 

FILES

/usr/lib/calendar  to figure out today’s and tomorrow’s dates
/etc/passwd
/tmp/cal∗
~/calendar
~/.userinfo   to use different character code from that in /etc/sysinfo
/lib/cpp, egrep, sed, mail   as subprocesses

SEE ALSO

at(1), cron(8), mail(1), setlocale(3). 

BUGS

calendar’s extended idea of ‘tomorrow’ doesn’t account for holidays. 

Some users who login using NIS may not get the mail, even if they type calendar - . 
This reason is that there are not the user names in /etc/passwd file.  If the names are wirtten in /etc/passwd file, they get the mail. 

NEWS-OSRelease 4.1C

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026