Quote:
Originally Posted by Windu
That calendar tool is not part of Slackware. Are you trying this on a non-Slackware distribution?
If the cron runs as root, any standard and error output from the cron job is emailed to root. If you defined an alias for root you would find it in /etc/mail/aliases .
Since calendar is not in Slackware, I do not know what it does. I hope you can tell me. Will it send emails all by itself? And have you configured "jim" as the recipient of those emails?
|
You did see that I had to take all of the stuff for calendar(1) from my
old Mint system, right? As for Slackware not having it, that is NOT
normal. calendar(1) is a standard part of any/all Unix variants, period.
You have a program called calendar, and a file in either your home
directory or a directory under it (depending on how calendar(1) is
configured. Either way, you can run it as calendar -f [calendarfile].
The calendar file looks like this:
3Jan<TAB>I have something I need to do on this day, possibly at a certain time
If you run calendar(1) yourself, you'll have that show up on your screen
on 2Jan and 3Jan (weekends are special). If root runs it from crontab,
either as "calendar-" for most versions, or "calendar -a" for others, it
goes through every users' calendar file, and using the same scheduling
rules, sends them an email (local on the system) if they have anything
current. I've never heard of any Unix, including any Linux, that doesn't
have calendar. That's just not normal. It's far too useful to not have.
That's why I "borrowed" it from my ancient Mint system that's on an even
more ancient laptop.
Btw, running it yourself and seeing it on screen, or having root send you
an email as a result of having calendar - (or -a on some systems), you
get an email, usually with the subject of "calendar output" that has
that same line as typed above, and again, that's the day before and
the day of, and weekends are treated special (meaning I don't remember,
offhand, which days, from Friday to Monday, get what on which days).
As a two-time cancer survivor, I have medical appointments all the time,
meds and injections to take that must be done on schedule, personal
stuff, etc., that it makes it trivial to keep track of. I also have
a backup in an Android app called MedHelper (free and worth its weight
in gold if you're in a situation even remotely like mine). My calendar
file is always updated. MedHelper is almost always updated, unless I
forget (and chemobrain can easily take care of making me forget stuff).
So back to the question: Does anyone know how to either configure
calendar(1) or root's crontab to send the emails directly to me as
"jim" and not to "jim@JinxsSlack.local" when calendar (run every
morning at 0200) tells it to send an email to me with the line (or
lines) current entries that it finds?
Oh, and just to be clear, contrary to what some people on the 'net
seem to think, no, calendar is not in any way related to cal (even
search engines get that all fragged up). :-)
Thanks,
--jim [this line is actually indented by three spaces, and
the line below it doesn't exist and is not really there]