It's also important to get the permissions of the /var/cron/ and /var/cron/tabs/ directories set correctly. As the file /usr/doc/Cygwin/cron.README says, there is a 'postinstall' script that should have set these for you, but they may have been changed to incorrect settings:
$ chmod 1777 /var/cron $ chmod 1777 /var/cron/tabs > -----Original Message----- > From: Smithesh Ramachandran [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 04, 2002 5:06 PM > To: Harig, Mark A.; [EMAIL PROTECTED] > Subject: RE: cygwin crontab > > > Hi, > I did the following to start the server. > cygrunsrv -S cron > > And I see it running: > admin@TMLA-SRAMACHAND /tmp > $ ps -ef|grep cron > SYSTEM 2084 2068 ? 13:49:45 /usr/sbin/cron > > Also tried checking the below date example in crontab. Still > not running. > > Stopped and started again, but still not working. Hoping for > your help. > The cron version I'm running is 3.0.1-7. > > Thank you, > Smithesh. > > > > > -----Original Message----- > From: Harig, Mark A. [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 04, 2002 12:42 PM > To: Smithesh Ramachandran; [EMAIL PROTECTED] > Subject: RE: cygwin crontab > > > After installing the service (using the '-I' option), you > need to start > the service using the '-S' option. > > Debug one problem at a time. Instead of trying to get your > perl script > to work via 'cron', try to get the 'date' command to work, > for example: > > * * * * * /usr/bin/date >> /tmp/date.txt > > Once you have that working, you can work on the perl script problem. > > > -----Original Message----- > > From: Smithesh Ramachandran [mailto:[EMAIL PROTECTED]] > > Sent: Friday, October 04, 2002 2:00 PM > > To: '[EMAIL PROTECTED]' > > Subject: cygwin crontab > > > > > > Hi Corinna, > > I'm having trouble with cygwin crontab. Basically, I'm > trying to run a > > cygwin perl script that does some scp from windows using > > windows putty-scp > > to linux and solaris boxes. I've tested the cygwin perl script with > > putty-scp and it works well, but not with cron. > > > > I'm not sure if the following command will start the cron > > server on cygwin. > > But I executed this. > > cygrunsrv -I cron -p /usr/sbin/cron -a -D > > > > I got the above info from /usr/docs/Cygwin/cron.README > > > > I'm not getting any basic cron stuff working also. Please help. > > Thanks, > > Smithesh. > > > > > > > > > > -- > > 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/