delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/25/11:21:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: James Butenhoff <jpb AT uhc DOT com>
Message-Id: <200206251520.KAA179472@bis5.uhc.com>
Subject: Cron & file owner issues
To: cygwin AT cygwin DOT com
Date: Tue, 25 Jun 2002 10:20:41 -0500 (CDT)
MIME-Version: 1.0

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 AT 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 AT 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 AT 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 AT 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 AT 6049FHGZD817[0]: /tmp> ls -l mydate
-rw-r--r--    1 jbutenh  None           27 Jun 18 10:37 mydate
jbutenh AT 6049FHGZD817[0]: /tmp> chmod -v 666 mydate
mode of `mydate' changed to 0666 (rw-rw-rw-)
jbutenh AT 6049FHGZD817[0]: /tmp> chgrp -v Everyone mydate
changed group of `mydate' to Everyone
jbutenh AT 6049FHGZD817[0]: /tmp> ls -l mydate
-rw-r--r--    1 jbutenh  None           27 Jun 18 10:37 mydate
jbutenh AT 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?

--Jim
------------------------------------------------------------------
James Butenhoff, Sr. Software Engineer & Principal Consultant
Currently under contract at:       United HealthCare Corporation
On-site at UHC: Voice: 952.992.4731    U.H.C. E-Mail: jpb AT uhc DOT com
===================================================================

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

- Raw text -


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