delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/26/11:37:00

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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
Subject: RE: (Fwd) Cron oddity
Date: Fri, 26 Jul 2002 11:36:53 -0400
Message-ID: <BADF3C947A1BD54FBA75C70C241B0B9E10AA78@ex02.idirect.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Harig, Mark A." <maharig AT idirect DOT net>
To: <derbyshire AT globalserve DOT net>, <cygwin AT cygwin DOT com>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019