www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/24/09:11:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: Yes, hits=5.1 required=5.0 tests=AWL,BAYES_20,BOTNET,J_CHICKENPOX_34,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-id: <037f01c9c4de$1f9d0de0$940410ac@wirelessworld.airvananet.com>
From: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
To: "LAU2" <lurqu01 AT hotmail DOT com>, <cygwin AT cygwin DOT com>
References: <23177251 DOT post AT talk DOT nabble DOT com> <030101c9c418$0e5d8940$940410ac AT wirelessworld DOT airvananet DOT com> <23197369 DOT post AT talk DOT nabble DOT com> <23197408 DOT post AT talk DOT nabble DOT com> <032301c9c433$75f8ddf0$940410ac AT wirelessworld DOT airvananet DOT com> <23207366 DOT post AT talk DOT nabble DOT com>
Subject: Re: Similar Cron issue--Cron wont do anything
Date: Fri, 24 Apr 2009 09:11:03 -0400
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: "LAU2" <>
To: <cygwin AT cygwin DOT com>
Sent: Thursday, April 23, 2009 7:53 PM
Subject: Re: Similar Cron issue--Cron wont do anything
| 
| Pierre A. Humblet wrote:
| > 
| > 
| > ----- Original Message ----- 
| > From: "LAU2" 
| > To: <cygwin AT cygwin DOT com>
| > Sent: Thursday, April 23, 2009 11:26 AM
| > 

| > *********
| > Thanks. 
| > What you did with /etc/group looks wrong. If  I understand it correctly
| > you now have two lines in /etc/group with the same GID. I also notice
| > from cronbug.txt that the Users group does not display properly.
| > You may want to regenerate /etc/group, but none of the above explains
| > what we see with cron.
| > 
| > The cronbug file is now complete and your crontab exists.
| > Everything looks absolutely normal.
| > cron is running as yourself but can't setuid to yourself :(
| > 
| > Can you try the following:
| > 1) Stop the cron service (cygrunsrv -E cron)
| > 2) cd /usr/sbin
| > 3) Type "./cron -x sch,load" (without "")
| > 4) You will see immediate output, then a pause after "sec-to-wait=XXX"
| >     Let cron runs once after that, then kill it with ^C
| > Cut and paste the output and send it to us.
| > 
| > Thanks
| > 
| > Pierre
|******************
| 
| Below is the output. I also attached the cronbug file produced AFTER
| producing the output. The windows event log doesn't show that anything
| happened though. Normal?
| 
| ******OUTPUT**********
| 
| $ ./cron -x sch,load
| debug flags enabled: sch load
| [2388] cron started
| log_it: (CRON 2388) STARTUP (V5.0)
| [2388] load_database()
|        Landon: [done]
| unlinking old database:
| load_database is done
| [2388] GMToff=-10800
| [2388] Target time=1240519500, sec-to-wait=40
| [2388] tick(45,20,22,3,4)
| user [Landon:1002:513:...] cmd="sh create_dir_new.sh > /home/landon/logfile"
| [2388] load_database()
| [2388] spool dir mtime unch, no load needed.
| [2388] Target time=1240519560, sec-to-wait=60
| log_it: (Landon 3544) CMD (sh create_dir_new.sh > /home/landon/logfile)
| 
| ******************END**************

Thanks for trying.
The cronbug file is not attached :(
Looks like cron ran your command and didn't log anything special.
Did create_dir_new.sh do what you wanted?
Is /home/landon/logfile as you expect?

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