Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 8 May 2003 14:45:13 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Sanjay Goel cc: cygwin AT cygwin DOT com Subject: Re: cron in cygwin In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sanjay, Are all relevant mounts system mounts, or user mounts? Please *attach* the output of "cygcheck -svr" as per . 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" wrote in message > news:Pine DOT GSO DOT 4 DOT 44 DOT 0305080825130 DOT 3212-100000 AT slinky DOT cs DOT nyu DOT 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" wrote in message > > > news:Pine DOT GSO DOT 4 DOT 44 DOT 0305071452260 DOT 3212-100000 AT slinky DOT cs DOT nyu DOT 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 ). > > > > > > > > > > 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 AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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/