I’ve used this in the past which has come in handy. Initially brought to my attention by Steve Bromwich. It’s a handy little command line tool utility for printing out a calendar. Useful for such things as on-call rotation, vacation time, etc.
First off you need to install the required packages (assuming debian based o/s):
apt-get install pcal
Now by default when you run pcal, it will simply create an emtpy calendar. The real advantage of a tool like this is to have a text file with events in it (including icons). Then it will be outputed when you run pcal. To create an empty calendar for the month of this writing one would type:
pcal -E -o Calendar-June-2012.ps -t Times-Roman/54 -n /12 06 01 12
Description:
-E = Use European Date conventions
-o = write to output file
-t = Title Font / Font Size
-n = text font / size (for events)
06 01 12 = Month, # of Months, Year
Example of configuration file:
last Monday in May* Memorial Day Holiday
all Fridays in Oct Status Meeting, 11 AM
first workday in all %-B progress report due
all Fri in all fBTime card due,fP 3 PM
all Monday in all Fiscal week %0W
-2nd workday in all Schedule for %+B due %+2D
Fri on_or_before all 15 Pay Day
even Fridays in year Pay Day
183rd day of year Mid-year (%l days left)
Tue after first Mon in Nov Election Day (USA)
4th Thu in Nov* Thanksgiving
Fri after 4th Thu in Nov* Day after Thanksgiving
Easter Easter Sunday
Good_Friday* Good Friday
Monday after Easter* Easter Monday
Christmas Christmas
Day after Christmas Boxing Day
workday ooa Christmas* Christmas Holiday
workday after Christmas* Boxing Day Holiday
Last Sunday in Sep Day Light Saving Starts - Clock Forward
First Sunday in Apr Day Light Saving Ends - Clock Back
Fri on_or_before all 13 Avoid black cats! # Friday the 13th
Just save it as ~/.calendar
Lastly to take this postscript outputted calendar, and convert it into a PDF simply run the command:
ps2pdf filename.ps filename.pdf
great post