delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/03/12:24:29

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=3.5 required=5.0 tests=AWL,BAYES_00,BOTNET,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-id: <02c201ca743d$5f01eff0$900410ac@wirelessworld.airvananet.com>
From: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
To: "Larry W. Virden" <lvirden AT yahoo DOT com>, "Cygwin" <cygwin AT cygwin DOT com>
References: <266542 DOT 70707 DOT qm AT web30802 DOT mail DOT mud DOT yahoo DOT com>
Subject: Re: 1.7.0(0.214/5/3) cron service appears to be working, but no results are found
Date: Thu, 03 Dec 2009 12:23:46 -0500
MIME-version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

----- Original Message ----- 
From: "Larry W. Virden"
To: "Cygwin"
Sent: Thursday, December 03, 2009 11:05


| --- On Wed, 12/2/09, Pierre A. Humblet <Pierre DOT Humblet AT ieee DOT org> wrote:
|
|
| >
| > Larry,
| >
| > Everything looks fine to me. Cron runs, reloads the crontab
| > when it changes and execs the
| > commands.
|
| Well, in one sense that is good news - that is, that at least we have things set up 
appropriately.
|
<snip>
|
| I do know that we don't have a sendmail/exim/ssmtp set up in our Cygwin 1.7 environment. 
Normally in a Unix/Linux type environment, cron would email errors to me. In the cron README 
file, I see that what I should be seeing is a cron.log file if there are any errors. I don't 
have a $HOME/cron.log (but maybe HOME isn't defined in the cron environment).
| The readme also mentions /tmp/cron*.log and /tmp/cron*log.err, but I don't have one of those 
either.
|
Right, if you don't install a mailer, cron writes what would be in the mail to a "cron.log" file 
in the HOME directory. HOME is obtained from /etc/password, if not defined in the crontab.

| The readme goes on to mention /etc/cron.d and /etc/crontab but neither of these exist in my 
environment. Should they, and if so, does anyone have any idea what the specifics are for 
creating them? I only see references to their existence in the cron readme.
|
That's optional, don't worry.

<snip>
| However, at one point in time, MKS Toolkit was installed here. For the past few months, an 
installer file remained, but the actual files used for services, etc. were removed. I worked 
with the admin this morning to force the removal of even the installation files today.  About 
the only thing left are a few registry entries the admin said had to do with license info, etc.

I don't think that's relevant.
| >
| > So either the exec fails (unfortunately that is not
| > reported) or some error occurs. Are there
| > any cron related files in /tmp or in the home directory of
| > lwv27 ? If so do they contain useful
| > info?
|
| There do not appear to be any cron related files in /tmp or /home/lwv27.

I think it's a problem with the exec. Here is what you should do to help:
1) Set your crontab to do something very simple (touch /tmp/xxx) every minute (* * * * *)
2) Launch cron, or if already running, wait one minute until it has reloaded the crontab
3) With "ps -a" identify the cron daemon pid
4) In bash, type
    strace -p cron_pid   |   tee strace.txt
Do that at a time where cron is inactive, i.e. away from a minute boundary (use "date").
This will trace cron and its subprocesses, displaying the text on the screen and saving it in 
strace.txt
Output will only appear initially and then every minute.
You may have to be in the Administrators group on your machine to do that. If need be ask
your admin to help.
5) After two cron runs, stop strace
To do that, open another bash window and type "kill -9 cron_pid"

Send me the strace.txt file as an attachment.

Thanks for your help

Pierre


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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