delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/08/16:33:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Sat, 8 Oct 2005 16:33:05 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Orfeo Da Via <orfeo DOT davia AT microline-srl DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Cron problem
In-Reply-To: <Pine.WNT.4.58.0510081054270.1064@sn2307128>
Message-ID: <Pine.GSO.4.63.0510081628340.501@slinky.cs.nyu.edu>
References: <Pine DOT WNT DOT 4 DOT 58 DOT 0510071413450 DOT 480 AT sn2307128> <Pine DOT GSO DOT 4 DOT 63 DOT 0510071005110 DOT 501 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT WNT DOT 4 DOT 58 DOT 0510071635180 DOT 572 AT sn2307128> <Pine DOT GSO DOT 4 DOT 63 DOT 0510071114350 DOT 501 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT WNT DOT 4 DOT 58 DOT 0510071835090 DOT 540 AT sn2307128> <Pine DOT GSO DOT 4 DOT 63 DOT 0510071320100 DOT 501 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT WNT DOT 4 DOT 58 DOT 0510081054270 DOT 1064 AT sn2307128>
MIME-Version: 1.0

---559023410-630072926-1128803585=:501
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT

On Sat, 8 Oct 2005, Orfeo Da Via wrote:

> > Try doing this without changing your UID to 18.  In fact, is there a
> > reason why you didn't use cron-config in the first place?  Why not try
> > removing all traces of the cron service, including the log and pid files,
> > and using cron-config to install cron?
>
> well, I removed all my cron intallation:
>
> $ cygrunsrv --stop cron
> $ cygrunsrv --remove cron
> $ rm -f /var/run/cron.pid
> $ rm -f /var/log/cron*
>
> $ cygrunsrv -L
>  (empty row)
>
> then I restarted cygwin and:
>
> $ /usr/bin/cron-config
>
> ...as service? yes
> ...yourself?   no
> ...ntsec?      yes
> ...start ..service? yes
>
> now:
>
> $ cygrunsrv -L
>   cron
>
> $ cygrunsrv -Q cron
>  Service             : cron
>  Display name        : Cron daemon
>  Current State       : Running
>  Controls Accepted   : Stop
>  Command             : /usr/sbin/cron -D

So far so good...

> $ crontab -l
>  # DO NOT EDIT THIS FILE - edit the master and reinstall.
>  # (/tmp/crontab.300 installed on Sat Oct  8 10:23:16 2005)
>  # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp  $)
>  * 10 * * * /bin/date >> /home/micekiller/tmp/date.out 2&1
                                                         ^^^
Whoops.  No good here.  You forgot the '>' -- the last part should be
'2>&1'.

> $ ls -l /home/micekiller/ | grep tmp
>  drwxr-xr-x+  2 micekiller     None     0 Oct  8 11:03 tmp
>
> $ ls -l /home/micekiller/tmp
>  total 0
>
> grrrr ...does't work!

Eh?  How do you figure that?  I wonder, did you see René Berber's reply
(<http://cygwin.com/ml/cygwin/2005-10/msg00147.html>)?

> $ ll /var/log/cron.log
>  -rw-r--r--  1 SYSTEM root 39 Oct  8 10:31 /var/log/cron.log
>
> $ cat /var/log/cron.log
>   [836] cron started
>   [1032] cron started
>
> where I'm wrong?  Thanks O.

We can't tell you where you are wrong until you tell us what you mean by
cron "not working"...  Does the crontab fail to execute correctly (i.e.,
every minute after 10:00?

I think, besides fixing the above typo, reading "man 5 crontab" would be
helpful.

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

---559023410-630072926-1128803585=:501
Content-Type: text/plain; charset=us-ascii

--
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/
---559023410-630072926-1128803585=:501--

- Raw text -


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