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-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: "Sanjay Goel" Subject: Re: cron in cygwin Date: Fri, 9 May 2003 09:35:13 +0530 Lines: 498 Message-ID: References: X-Complaints-To: usenet AT main DOT gmane DOT org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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" wrote in message news:Pine DOT GSO DOT 4 DOT 44 DOT 0305081438330 DOT 22924-100000 AT slinky DOT cs DOT nyu DOT edu... > 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 > > begin 666 cygcheck.txt M#0I#>6=W:6X AT 5VEN DOT 34O3E0@0V]N9FEG=7)A=&EO;B!$:6%G;F]S=&EC6=W:6Y<=7-R7'-B:6X-"@ED.EQ7:&ET94QI9VAT7%-H87)E#0H)8SI<4%)/ M1U)!?C%<4D%424].04Q<4D%424].?C%<3E540U)/3U1<8FEN#0H)8SI<4%)/ M1U)!?C%<4D%424].04Q<4D%424].?C%<3E540U)/3U1<8FEN7'@Q,0T*"6,Z M7%!23T=207XQ7%)!5$E/3D%,7%)!5$E/3GXQ7$Y55$-23T]47&UK7-T96TS,@T*"6,Z7%=)3DY4 M#0H)8SI<5TE.3E1<4WES=&5M,S)<5V)E;0T*"6,Z7%!R;V=R86T AT 1FEL97-< M4F%T:6]N86Q<8V]M;6]N#0H)8SI<4')O9W)A;2!&:6QE6=W:6Y< M=7-R7%@Q,5(V7&)I;@T*"60Z7%=E8E-P:&5R95Q!<'!397)V97)<8FEN#0H- M"D0Z7&-Y9W=I;EQB:6Y<:60N97AE(&]U='!U=" H;F]N='-E8RD-"E5)1#H@ M-# P*'-G;V5L*2 @1TE$.B T,#$H;6MP87-S=V0I#0HT,#$H;6MP87-S=V0I M#0H-"D0Z7&-Y9W=I;EQB:6Y<:60N97AE(&]U='!U=" H;G1S96,I#0I5240Z M(#0P,"AS9V]E;"D@(" @("!'240Z(#0P,2AM:W!AFEP(B<-"E)!5$Q?4E1(3TU%(#T AT 8$,Z7%!R;V=R M86T AT 1FEL97-<4F%T:6]N86Q<4F%T:6]N86P AT 5&5S="<-"E)/3U1$25(@/2!@ M0SI<4%)/1U)!?C%<4D%424].04Q<4D%424].?C%<3E540U)/3U0G#0I244%( M3TU%(#T AT 8$,Z7%!R;V=R86T AT 1FEL97-<4F%T:6]N86Q<4F%T:6]N86P AT 5&5S M=%Q1=6%L:71Y07)C:&ET96-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P($0Z7&-Y9W=I;EQB:6Y<8WEG6'!M+5 AT T+F1L;" M(&]S/30N,"!I;6<] M,2XP('-Y6=8<&TM6#0N9&QL M(B!V,"XP('1S/3(P,#(O,2\R,2 P.C(P#0H@(" U,&L@,C P,B\P,R\Q,B!$ M.EQC>6=W:6Y<8FEN7&-Y9WHN9&QL("T@;W,]-"XP(&EM9STQ+C @6=W:6XQ+F1L;" M(&]S/30N,"!I;6<],2XP('-Y6=W:6XQ+F1L;"(@=C N,"!T6=W:6X AT 1$Q,('9E2!N86UE.B!M;W5N=',@=C(-"B @(" @(" @ M0WEG9')I=F4 AT 9FQA9W,Z(&-Y9V1R:79E(&9L86=S#0H@(" @(" @($-Y9V1R M:79E('!R969I>#H AT 8WEG9')I=F4@<')E9FEX#0H@(" @(" @($-Y9V1R:79E M(&1E9F%U;'0@<')E9FEX.B -"B @(" @(" @0G5I;&0 AT 9&%T93H AT 5'5E($UA M6=W:6X-"DQA6=U=&EL6=W:6X@(" @(" @(" @(" @(" @(" Q+C,N,C(M M,0T*8WEG=VEN+61O8R @(" @(" @(" @(" @,2XS+3,-"F1I9F8@(" @(" @ M(" @(" @(" @(" @(#$N,"TQ#0ID:69F=71I;',@(" @(" @(" @(" @(" R M+C AT N,2TQ#0IE;6%C'!E8W0@(" @(" @(" @ M(" @(" @(" R,# S,#$R."TQ#0IF:6QE(" @(" @(" @(" @(" @(" @(" T M+C R+3$-"F9I;&5U=&EL" @(" @(" @(" @(" @(" @(" @,BXX+C0M M-0T*;30@(" @(" @(" @(" @(" @(" @(" @,2XT+3$-"FUA:V4@(" @(" @ M(" @(" @(" @(" @(#,N-SDN,2TW#0IM86X@(" @(" @(" @(" @(" @(" @ M(" Q+C5J+3(-"FUC(" @(" @(" @(" @(" @(" @(" @(#0N-BXP+3(-"FUI M;F=W+7)U;G1I;64@(" @(" @(" @(#(N-"TQ#0IM:W1E;7 @(" @(" @(" @ M(" @(" @(" Q+C0M,0T*;6]R92 @(" @(" @(" @(" @(" @(" @,BXQ,6\M M,0T*;F%N;R @(" @(" @(" @(" @(" @(" @,2XR+C M,0T*;F-F=' @(" @ M(" @(" @(" @(" @(" @,RXQ+C0M,0T*;F-U'1U=&EL'-EFQI8B @ M(" @(" @(" @(" @(" @(" @,2XQ+C0M,0T*#0I5