Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: RE: (Fwd) Cron oddity Date: Fri, 26 Jul 2002 11:36:53 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Harig, Mark A." To: , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g6QFax305809 > > Well, I installed ssmtp and put entries in the /etc/ssmtp/revaliases > file for "root", "daemon", and my userid with this email address and > my ISP's SMTP server, and let cron do its thing. No email almost an > hour later; the Windows XP event log shows that cron did its thing > and (attempted to) launch the script; and there's nothing in the way > of error messages there or in /var/log/cron.log. There's also no > dead.letter in ~, which would mean it attempted to send the mail and > failed. Since it clearly didn't attempt to send the mail and fail, > and equally clearly didn't attempt to send the mail and succeed, I > can only conclude that it didn't attempt to send the mail at all. Any > clue what's going on? > 1. Consider installing 'mutt' using setup.exe. 2. Confirm that ssmtp is setup and configured properly by sending mail to yourself using mutt: $ mutt -s "hello, world" you AT youraddress < /dev/null 3. If you don't receive mail within 5 minutes (more like 5 seconds), then you need to troubleshoot your ssmtp and mutt setups. Read /usr/doc/Cygwin/mutt*, /usr/doc/Cygwin/ssmtp* (for example, did you run /usr/bin/ssmtp-config?). Also, see the manual pages for mutt and ssmtp: $ man 1 mutt $ man 8 ssmtp 4. Once you have mutt and ssmtp setup correctly (that is, once you can send mail to yourself reliably), then you can return to troubleshooting cron. You shouldn't need to wait until midnight to test cron. Simply create an entry like the following in your crontab: * * * * * date or * * * * * /usr/bin/date If everything is setup properly, then you should receive an email message every minute with the output of the 'date' program. If you don't receive emails, then read 'man 5 crontab'. Consider setting the environment variable "MAILTO=youraddress" in your crontab file. > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/