X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <6910a60807201111p7451ccecl22cef18fa86e2875@mail.gmail.com>
Date: Sun, 20 Jul 2008 20:11:32 +0200
From: "Reini Urban" <rurban@x-ray.at>
To: cygwin@cygwin.com
Subject: Re: cron jobs and email
In-Reply-To: <loom.20080720T122044-115@post.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <loom.20080720T122044-115@post.gmane.org>
X-Google-Sender-Auth: a7f84c523ef4932b
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

