delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/27/21:13:53

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
Date: Tue, 27 May 2003 21:14:08 -0400
From: "Pierre A. Humblet" <pierre DOT humblet AT ieee DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: getting cron to work -> status too large for sendmail?
Message-ID: <20030528011408.GA41789045@hpn5170x>
Mail-Followup-To: "Pierre A. Humblet" <pierre DOT humblet AT ieee DOT org>,
cygwin AT cygwin DOT com
References: <BADF3C947A1BD54FBA75C70C241B0B9E7633F2 AT ex02 DOT idirect DOT net> <001c01c324a4$e5b8dd00$1403a8c0 AT sc DOT tlinx DOT org>
Mime-Version: 1.0
In-Reply-To: <001c01c324a4$e5b8dd00$1403a8c0@sc.tlinx.org>
User-Agent: Mutt/1.4i

On Tue, May 27, 2003 at 04:08:34PM -0700, linda w (cyg) wrote:
> 
> Perhaps one problem might be that in addition to the normal WinXP env vars that would
> be defined for a user, I started cron from one of my cygwin shell windows, so it would
> have inherited all of the env vars from personal login as well.  But 
> conceivably, one could have more than 4K of env vars declared at the system level
> as well  -- Either way, it's would be generating a 4K log file -- most of which I
>  wouldn't see (since headers are hidden if I'm reading from, many Win-GUI 
> (specifically Outlook in my case) email readers).
> 
> Perhaps cron should be purging it's environment or something before starting user
> jobs?  Seems a bit unclean to pass my environment to cron but then cron just blindly
> pass it's environment to a child.  

cron behaves as you wish everywhere, except on Cygwin NT. This is discussed in 
/usr/doc/cygwin/cron.README  In a nutshell it was meant for the small service 
environment. It would be easy to patch cron to behave as it does on Win9X when it 
is not started as a service.

Another option is to keep your script and have it call ssmtp, either filtering out
the environment values or putting them in the body of the message.
  
> I'm guessing there's probably a better way to start cron so it comes up at system
> start, but how does it switch user ID's?  It's not like the GUID's are recorded
> in /etc/passwd...??  Or does it switch UID's?

Not sure I understand the question. Isn't that what services are for? See cygrunsrv.

Pierre

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

- Raw text -


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