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: crontab fails to change crontab file: "no changes made to crontab"


Somehow, the cron.sh script did not get run during your installation.
Here is what it does:

#!/bin/sh

set -x

if [ ! -d /var/cron ]
then
  mkdir -p /var/cron
fi
chmod 1777 /var/cron

if [ ! -d /var/cron/tabs ]
then
  mkdir /var/cron/tabs
fi
chmod 1777 /var/cron/tabs



> -----Original Message-----
> From: Steve Holden [mailto:sholden@holdenweb.com]
> Sent: Thursday, October 10, 2002 1:29 PM
> To: cygwin@cygwin.com
> Subject: crontab fails to change crontab file: "no changes made to
> crontab"
> 
> 
> I'm using a cygwin that I refreshed yesterday, on Win2K SP2.
> 
> uname -a says: CYGWIN_NT-5.0 COMPUTER 1.3.12(0.54/3/2) 
> 2002-07-06 02:16 i686
> unknown
> 
> I installed the cron service following recommendations to include
> CYGWIN="tty ntsec". Cygcheck reveals that cron is version 3.0.1-7.
> 
> Everything appears fine when I create my crontab file, and 
> jobs do actually
> run. But then I'm not allowed to edit the file. I even 
> deleted /var/cron to
> ensure correct permissions, and have tried both recreating it with the
> postinstall script and letting crontab recreate it. No joy. 
> The console
> session below is fairly typical.
> 
> sholden@COMPUTER ~
> $ crontab -l
> /var/cron: No such file or directory
> /var/cron: created
> tabs: No such file or directory
> tabs: created
> no crontab for sholden
> 
> sholden@COMPUTER ~
> $ crontab -e
> no crontab for sholden - using an empty one
> crontab: installing new crontab
> 
> sholden@COMPUTER ~
> $ crontab -e
> crontab: no changes made to crontab
> 
> sholden@COMPUTER ~
> $ ls -lRF /var/cron
> /var/cron:
> total 0
> drwxr-xr-x    2 sholden  None            0 Oct 10 13:11 tabs/
> 
> /var/cron/tabs:
> total 1
> -rw-r--r--    1 sholden  None          224 Oct 10 13:11 sholden
> 
> >From a cursory reading of the source this look like a 
> failure to rename the
> temporary file. What have I done wrong?
> 
> regards
> --------------------------------------------------------------
> ---------
> Steve Holden                                  
http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Previous .sig file retired to                    www.homeforoldsigs.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/


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