cron notifications

Erald Troja etroja at albunix.org
Tue Oct 4 11:01:14 PDT 2005


Hello!

hello!

I'm having issues getting cronjob notifications.

probably a misconfig. i'm fairly new to freebsd, comming from a linux 
platform.


i was told nothing needs to be configured sendmail wise to get this going.

i can relay messgs via either 'mail' or '/usr/sbin/sendmail' out just 
fine.

Cron itself runs perferctly, as I can see it in the log files.

Sep 30 12:53:58 web01 crontab[45138]: (aroadmin) END EDIT (aroadmin)
Sep 30 12:54:00 web01 /usr/sbin/cron[459]: (aroadmin) RELOAD 
(tabs/aroadmin)
Sep 30 12:54:00 web01 /usr/sbin/cron[45206]: (aroadmin) CMD (/bin/ls)
Sep 30 12:55:01 web01 /usr/bin/crontab[45507]: (root) LIST (aroadmin)
Sep 30 12:55:02 web01 /usr/bin/crontab[45512]: (root) LIST (aroadmin)
Sep 30 12:55:38 web01 crontab[45605]: (aroadmin) BEGIN EDIT (aroadmin)
Sep 30 12:55:44 web01 crontab[45605]: (aroadmin) REPLACE (aroadmin)
Sep 30 12:55:44 web01 crontab[45605]: (aroadmin) END EDIT (aroadmin)
Sep 30 12:55:58 web01 /usr/bin/crontab[45714]: (root) LIST (aroadmin)
Sep 30 12:56:00 web01 /usr/sbin/cron[459]: (aroadmin) RELOAD 
(tabs/aroadmin)
Sep 30 12:56:00 web01 /usr/sbin/cron[45722]: (aroadmin) CMD (/bin/ls)


That's from me editing crontabls via the control panel. I have of course 
changed the time so I could test it.


This is all maillog shows regarding it

Sep 30 12:54:00 web01 sendmail[45210]: j8UGs0cs045210: from=aroadmin, 
size=0, class=0, nrcpts=0, 
msgid=<200509301654.j8UGs0cs045210 at web01.secureser verdot.com
>, relay=aroadmin at localhost
Sep 30 12:54:00 web01 sendmail[45209]: j8UGs08L045209: from=aroadmin, 
size=0, class=0, nrcpts=0, 
msgid=<200509301654.j8UGs08L045209 at web01.secureser verdot.com
>, relay=aroadmin at localhost
Sep 30 12:56:00 web01 sendmail[45727]: j8UGu0co045727: from=aroadmin, 
size=0, class=0, nrcpts=0, 
msgid=<200509301656.j8UGu0co045727 at web01.secureser verdot.com
>, relay=aroadmin at localhost
Sep 30 12:56:00 web01 sendmail[45725]: j8UGu0gr045725: from=aroadmin, 
size=0, class=0, nrcpts=0, 
msgid=<200509301656.j8UGu0gr045725 at web01.secureser verdot.com
>, relay=aroadmin at localhost


finally, i'm trying to mail out to an yahoo.com address as to avoid 
questing/confustions about receipients ability to receive mail.


any help is well appreciated. also, i don't want to switch to qmail, since 
this is a web server acting as part of H-sphere hosting cluster.


Yes, either mail fearff at yahoo.com or

/usr/sbin/sendmail -v fearff at yahoo.com work perfectly fine.

I am trying to get a notification that a simple command like /bin/ls or 
/bin/pwd was successfully executed.

in linux, crontab -e edits one's crontab.
you put a correct crontab entry to excute /bin/ls or /bin/pwd and it'll 
mail you to the

MAILTO address with a notification that the cron has been run.




-- 
Erald Troja
etroja at albunix.org 



More information about the freebsd-stable mailing list