This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cron problem
Hi, Igor
> 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
$ 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
$ 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!
$ 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.
--
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/