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 in cygwin


Sanjay,

There's nothing obviously wrong with your cygcheck output (except your
/etc/group not being up to date, but I'm not sure it'd affect cron).  And
I see you also used Mark A. Harig's script to detect cron problems...

If I had to venture a guess, I'd say it's a permissions issue -- what are
the permissions on /d (the output of "ls -ld /d" and "getfacl /d")?  Does
your cron script work if you change /d/date.log to /tmp/date.log?
	Igor

On Fri, 9 May 2003, Sanjay Goel wrote:

> mount yields
> D:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system
> (binmode)
> D:\cygwin\bin on /usr/bin type system (binmode)
> D:\cygwin\lib on /usr/lib type system (binmode)
> D:\cygwin on / type system (binmode)
> c: on /c type system (binmode,noumount)
> d: on /d type system (binmode,noumount)
> e: on /e type system (binmode,noumount)
>
> crontab -l yields
>
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.2148 installed on Thu May  8 19:27:29 2003)
> # (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp $)
> * * * * * /usr/bin/date >> /d/date.log 2>&1
> #0 22 * * * updatedb --localpaths="/ /c /d /e"
>
> output of cygcheck -srv is attached ...
>
> "Igor Pechtchanski" <pechtcha@cs.nyu.edu> wrote in message
> Pine.GSO.4.44.0305081438330.22924-100000@slinky.cs.nyu.edu">news:Pine.GSO.4.44.0305081438330.22924-100000@slinky.cs.nyu.edu...
> > Sanjay,
> >
> > Are all relevant mounts system mounts, or user mounts?  Please *attach*
> > the output of "cygcheck -svr" as per <http://cygwin.com/problems.html>.
> > Igor
> >
> > On Thu, 8 May 2003, Sanjay Goel wrote:
> >
> > > I tried out
> > > * * * * * /usr/bin/date >> /d/date.log 2>&1
> > > but my date.log is not updating ...
> > > the cron is still not working ..
> > > as per post by a12 I also did
> > >
> > > cygrunsrv -E cron
> > > cygrunsrv -R cron
> > > cygrunsrv -I cron -p /usr/sbin/cron -a -D -e "CYGWIN=tty ntsec" -f
> "Cygwin
> > > cron"
> > > cygrunsrv -S cron
> > >
> > > but it still is not working
> > >
> > > "Igor Pechtchanski" <pechtcha@cs.nyu.edu> wrote in message
> > > Pine.GSO.4.44.0305080825130.3212-100000@slinky.cs.nyu.edu">news:Pine.GSO.4.44.0305080825130.3212-100000@slinky.cs.nyu.edu...
> > > > Try "/d/test.sh >> /d/test.log" ;-)
> > > > Igor
> > > >
> > > > On Thu, 8 May 2003, Sanjay Goel wrote:
> > > >
> > > > > Thanks a lot both of you ...
> > > > > I have used cygrunsrv -I cron -p /usr/sbin/cron -a -D
> > > > > and now cron is installed as a service in my win2k services .
> > > > > I hope my cron jobs will run fine now ...
> > > > > can u tell me how to test whether it works properly.
> > > > > I wrote a script called test.sh containing "echo test" and wrote
> > > > > */2 * * * * /d/test.sh
> > > > > but nothing came on my screen
> > > > > I have not installed ssmtp so cant check that in mail ...
> > > > >
> > > > > Thanks and Regards,
> > > > > Sanjay
> > > > > "Igor Pechtchanski" <pechtcha@cs.nyu.edu> wrote in message
> > > > > Pine.GSO.4.44.0305071452260.3212-100000@slinky.cs.nyu.edu">news:Pine.GSO.4.44.0305071452260.3212-100000@slinky.cs.nyu.edu...
> > > > > > On Wed, 7 May 2003, Bill C. Riemers wrote:
> > > > > >
> > > > > > > > This is *way* too complicated.  It's fine if you run other
> things
> > > > > using
> > > > > > > > sysvinit, but if all you want is cron, try the way described
> in
> > > > > > > > /usr/doc/Cygwin/cron.README (you did read it, didn't you?
> that
> > > > > directory
> > > > > > > > contains the necessary instructions specifically for the
> Cygwin
> > > > > ports --
> > > > > > > > see <http://cygwin.com/faq/faq.html#SEC28>).
> > > > > > >
> > > > > > > Yes, I did try the directions in the README, but they do not
> work.
> > > > > > > "cygrunsrv" does not have -D option...
> > > > > > >
> > > > > > > cygrunsrv: unknown option -- D
> > > > > >
> > > > > > Bill, did you use the *exact* line from
> /usr/doc/Cygwin/cron.README?
> > > > > >
> > > > > > | Install as service like that:
> > > > > > | cygrunsrv -I cron -p /usr/sbin/cron -a -D
> > > > > >                                             ^^
> > > > > > The "-a" is a cygrunsrv option.  It tells cygrunsrv to pass the
> "-D"
> > > > > > option to cron.
> > > > > > [snip]

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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


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