www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/29/02:52:06

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
Message-Id: <5.1.0.14.2.20020429084746.00b92f20@pophost.marble.be>
X-Sender: gerrit AT pophost DOT marble DOT be
Date: Mon, 29 Apr 2002 08:51:46 +0200
To: jason AT tishler DOT net, cygwin AT cygwin DOT com
From: Gerrit Cap <Gerrit DOT Cap AT marble DOT be>
Subject: Re: Cron & ssmtp timeouts
Mime-Version: 1.0

>Gerrit,
>
>On Fri, Apr 26, 2002 at 02:03:56PM +0200, Gerrit Cap wrote:
> > I have a few batch jobs that I would like to schedule using cron and have
> > the output e-mailed. For small jobs this works fine but for jobs that run
> > for a period of time no e-mail is being sent. Instead after snooping 
> around
> > I found this error message in /var/log/cron.log:
> > /usr/sbin/ssmtp: connection lost in the middle of processing, exiting.
>
>I had similar problems.
>
> > Any ideas how to solve this ?
>
>Yes, if you are willing to use procmail and read the cron mail (only)
>locally, see the attached patch.  I have patched my cron to deliver mail
>via procmail instead of ssmtp in order to:
>
>     o solve the above problem
>     o prevent mail servers from removing the X-Cron-Env header fields
>     o remove the dependency of multiple mail hops just to send mail
>       to myself
>
>Jason

Jason,

Ok, thanx for the patch, but I solved it differently which gave me an extra 
bonus:
I created another batch script (batch-mail.sh) which launched the original 
batch program (batch.sh), redirected its output to batch.out and e-mails me 
that output. Problem solved and now I have as additional "feature" that my 
e-mails can be tuned to different mailboxes depending on the batch job.

Gerrit.

-------------------- Marble Consulting ----------------------
Gerrit Cap                      http://www.marble.be/
OO Solutions Engineer           mailto:Gerrit DOT Cap AT marble DOT be
Marble Consulting
Blauwe Gaanweg, 53              tel : +32 475  72.94.36
B-9150 Kruibeke-Bazel           fax : +32 3   744.19.17
Belgium
-------------------- Marble Consulting ----------------------
There is only one thing in the world worse than being witty,
and thats not being witty.          (Monthy Python)



--
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