LinuxDevCenter.com

oreilly.comSafari Books Online.Conferences.

We've expanded our Linux news coverage and improved our search! Search for all things Linux across O'Reilly!

Search
Search Tips

advertisement

Listen Print Subscribe to Linux Subscribe to Newsletters

Managing Appointments
Pages: 1, 2

Including other calendar files

The calendar package comes with several calendar files, stored in /usr/share/calendar, containing dates for many different occasions:

calendar.birthday

Births and deaths of famous people.

calendar.christian

Christian holidays.

calendar.computer

Significant dates in the history of computing.

calendar.history

Dates of US historical events.

calendar.holiday

Standard and obscure holidays.

calendar.judaic

Jewish holidays.

calendar.music

Dates related to music, mostly 60s rock.

calendar.usholiday

US holidays.

calendar.hindu

Hindu holidays.

To have calendar output dates from one of these files, put the following in your calendar file:

#include <filename>

where filename is the name of the calendar file.



For example, to output both US holidays and famous births and deaths when you run calendar, put these lines somewhere in your calendar file:

#include <calendar.usholiday>
#include <calendar.birthday>

And, of course, you can share your own calendar files with other users; this is useful for making special calendars for a group or organization. If the calendar file is in the current directory or /usr/share/calendar, you can just give the file name; otherwise, give its full path name in the include statement.

Automatic reminders

If you run the bash shell, you can put calendar in your .bashrc file to output the day's reminders every time you log in or start a new shell.

If you keep your calendar file in a directory other than your home directory, make sure that calendar is called from that directory. For example, if your calendar file is in your ~/doc/etc directory, you'd put the following in your .bashrc file:

cd ~/doc/etc; calendar; cd

Next week: Contact manager tools under Linux.

Michael Stutz was one of the first reporters to cover Linux and the free software movement in the mainstream press.


Read more Living Linux columns.




Tagged Articles

Be the first to post this article to del.icio.us

Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

O'Reilly Media

©2009, O'Reilly Media, Inc.
(707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
About O'Reilly
Academic Solutions
Authors
Contacts
Customer Service
Jobs
Newsletters
O'Reilly Labs
Press Room
Privacy Policy
RSS Feeds
Terms of Service
User Groups
Writing for O'Reilly
Content Archive
Business Technology
Computer Technology
Google
Microsoft
Mobile
Network
Operating System
Digital Photography
Programming
Software
Web
Web Design
More O'Reilly Sites
O'Reilly Radar
Ignite
Tools of Change for Publishing
Digital Media
Inside iPhone
O'Reilly FYI
makezine.com
craftzine.com
hackszine.com
perl.com
xml.com

Partner Sites
InsideRIA
java.net
O'Reilly Insights on Forbes.com