Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unix calendar command today (not including tomorrow's) content

Status
Not open for further replies.

achterberg

Technical User
Dec 27, 2003
2
US
This has to be too simple. I have two crontab events that email daily the information in an events calendar and a birthday calendar.

1 1 * * * calendar -f /usr/share/calendar/calendar -w today | mail -s 'Calendar Birthdays Today' me@somwhere
1 2 * * * calendar -f /usr/share/calendar/calendar.events -w today | mail -s 'Calendar Events Today' me@somewhere

This is as close as I could get to just sending me the current day's events, but it also includes tomorrow's events as well. What is the syntax to just get today's information?
 
This is the standard behavior of the calendar command.
Anyway:
Code:
 man calendar

Hope This Help
PH.
 
That is what I had read and understood. Anyway, I thought there might be a way to get around it. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top