Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'View upcoming events on multiple Unix calendars' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View upcoming events on multiple Unix calendars
Authored by: olivesoft on May 15, '06 09:08:14AM
It's probably better to create a file that contains references to all the calendar files you want to use. You can find a sample of this in: /usr/share/calendar/calendar.all I created a copy of this in my home directory and changed the included files to the full paths of only those in which I was interested:

#ifndef _calendar_all_
#define _calendar_all_

#include "/usr/share/calendar/"
#include "/usr/share/calendar/calendar.usholiday"

#endif /* !_calendar_all_ */
Because of this, you only need one "calendar" command that references your ".all" file:

calendar -l 0 -w 0 -f calendar.all

I tend to think of [Mac] OS X as Linux with QA and Taste.
-James Gosling, Java Architect

[ Reply to This | # ]

View upcoming events on multiple Unix calendars
Authored by: n1mie on Jun 07, '06 02:40:49PM

The problem with this method is that it assumes you want to look forward the same amount in every calendar. This is not true (for me). I like to look two weeks ahead in the file that has birthdays. Then I look 7 days ahead in several other personal calendars. In the canned files I only look at today. So your solution, while cool, isn't the one I prefer.


[ Reply to This | # ]