This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cron jobs and email
- From: "Reini Urban" <rurban at x-ray dot at>
- To: cygwin at cygwin dot com
- Date: Sun, 20 Jul 2008 20:11:32 +0200
- Subject: Re: cron jobs and email
- References: <loom.20080720T122044-115@post.gmane.org>
2008/7/20 r:
> I've a problem with cron, it does not send email
> when the job is done.
Very good! I'm seeing improvement following
http://www.faqs.org/rfcs/rfc1855.html Netiquette
Esp. "Mail should have a subject heading which reflects the content of
the message."
> I read " /usr/share/doc/Cygwin/cron-4.1-6.README"
> and followed all the instruction but nothing email
> ( the jobs in crontab are done ok ).
Also "cron & mail"?
> My /var/log/cron.log is empty, there is no
> $HOME/cron.log, the exim log doesn't specify anything
> about cron emails, my /etc/aliases is
>
> postmaster: Proprietario
> nobody: Proprietario
> root: Proprietario
>
> I added to my crontab MAILTO ( even if I read it is not
> necessary ) :
>
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.fh8FmSF6p5 installed on Sun Jul 20 14:15:14 2008)
> # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
>
> MAILTO=Proprietario
This should be a valid email address?
Try sending the email on the commandline to this address. cron does it
as your local user or as user SYSTEM, dependent of how you installed
your cron service.
cron just uses the /usr/bin/sendmail symlink.
Check your eventlog for cron errors.
Maybe another RFC will help, SMTP http://www.faqs.org/rfcs/rfc821.html
> 59 18 * * 6 /bin/backup.sh
> 17 14 20 7 * /bin/prova.sh
>
> I searched with google, but I did not find anything about this.
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/