This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cron & file owner issues


At 11:20 AM 6/25/2002, James Butenhoff wrote:
>Howdy!
>
>I am just trying out Cygwin. I am running it under NT4(SP6?). I 
>am running "CYGWIN_NT-4.0 6049FHGZD817 1.3.10(0.51/3/2) 2002-02-25
>11:14 i686 unknown" per the uname command. I would like to use cron
>to manage some work and am having difficulties getting it going.
>
>I have installed cygrunsrv V0.95 and cron (3.0.1-6?). Used the suggested
>cmd, `cygrunsrv -I cron -p /usr/sbin/cron -a -D`, to add the process
>to NT's services. Configured service to run as SYSTEM. NT task manager
>shows the service running. Cygwin's ps command also shows the cron
>process:
>
>jbutenh@6049FHGZD817[0]: ~> ps -aef
>     UID     PID    PPID TTY     STIME COMMAND
>  SYSTEM     214       1   ?    Jun 24 /usr/bin/cygrunsrv
>  SYSTEM     363     214   ?    Jun 24 /usr/sbin/cron
> jbutenh     375       1 con  09:22:40 /usr/bin/tcsh
> jbutenh     269     375 con  09:22:44 /usr/bin/ps
>jbutenh@6049FHGZD817[0]: ~> ps -ael
>      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
>      214       1     214        214    ?   18   Jun 24 /usr/bin/cygrunsrv
>      363     214     214        359    ?   18   Jun 24 /usr/sbin/cron
>      375       1     375        108  con 1003 09:22:40 /usr/bin/tcsh
>      370     375     370         96  con 1003 09:22:56 /usr/bin/ps
>
>I have created a simple cron test job:
>jbutenh@6049FHGZD817[0]: ~> crontab -l
># DO NOT EDIT THIS FILE - edit the master and reinstall.
># (/tmp/crontab.121 installed on Tue Jun 25 09:26:46 2002)
># (Cron version -- $Id: crontab.c,v 1.6 2001/09/19 17:09:55 corinna Exp $)
>* * * * * /usr/bin/date >> /tmp/mydate
>jbutenh@6049FHGZD817[0]: ~>
>
>But the crontab I have entered does not execute properly. :-(
>I suspect there is a permissions issue, but stumbled into another 
>issue trying to eliminate that possibility. Follow these cmds:
>
>jbutenh@6049FHGZD817[0]: /tmp> ls -l mydate
>-rw-r--r--    1 jbutenh  None           27 Jun 18 10:37 mydate
>jbutenh@6049FHGZD817[0]: /tmp> chmod -v 666 mydate
>mode of `mydate' changed to 0666 (rw-rw-rw-)
>jbutenh@6049FHGZD817[0]: /tmp> chgrp -v Everyone mydate
>changed group of `mydate' to Everyone
>jbutenh@6049FHGZD817[0]: /tmp> ls -l mydate
>-rw-r--r--    1 jbutenh  None           27 Jun 18 10:37 mydate
>jbutenh@6049FHGZD817[0]: /tmp>
>
>This is on my local hard disk which has a NTFS file system.
>Do these things not work in NTFS, or do I have something
>misconfigured? Can you offer any suggestions?


Why doesn't chmod work?
http://cygwin.com/faq/faq_4.html#SEC45




Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]