delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/28/20:47:00

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: Thu, 28 Oct 2004 20:46:51 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Robert Pollard <rpollard AT apple DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: cron won't execute tasks
In-Reply-To: <9F0386F4-2940-11D9-A394-000A957A7EA8@apple.com>
Message-ID: <Pine.GSO.4.61.0410282042170.13841@slinky.cs.nyu.edu>
References: <9F0386F4-2940-11D9-A394-000A957A7EA8 AT apple DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Thu, 28 Oct 2004, Robert Pollard wrote:

> Hello all,
>
> This problem is driving me insane (I don't have far to go ;-).
> [snip]
> The problem:
> Cron will not execute every minute now.  I have a scheduled task that does
> something like "* * * * * /bin/echo "Test" >/dev/null 1>/TestAct.log"  It
> doesn't execute at all.

Exactly how do you know that it doesn't execute?  I hope not by the lack
of output in /TestAct.log, because the above command will *never* write
anything to /TestAct.log...  It should change the mod time on it, though.
:-)

> [snip]
> Usually, it reports to the system log and I can tell that it is at least
> trying to run every minute.  It's very difficult to know what is
> happening since it doesn't report anything to the system log.  If I run
> it from the command line I can't even see any logging activities at all.
> Looking into /var/log/cron.log only shows when it is started and
> stopped.

Did you check the Windows Event Log?

> BTW, the only way I can get an entry into the system log is to run
> crontab. It tries to reload the crontab entry.  When it was under the
> domain user, I was able to see an entry in the system log every minute.
> Although, it wouldn't execute the scripts because it couldn't switch
> user context.

mkpasswd -d -u DomainUserName >> /etc/passwd

You may also need to do something for groups, e.g.,

mkgroup -d >> /etc/group

(WARNING: the above might take very long if your domain is large and has a
lot of groups).

> Thanks for any help you can give.
> -Robert Pollard

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!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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