X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=nv oRfUOIdwKrzMogckb2j/ED+pZuhxH7postzsFifezqRfQsvL5J6TpofpkqY/7g30 l1kdb7H6SeDViCvutxoAajSkpne/1L0fEtCd9MDHl+YDNLXpfetScn1lEOaYMuOG SKRub0GTgKjrHIKGeT4kqrtyFuOn0DWJVEBRekSAs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=JCqpLvDz QUgG3leW/GKjCgoUIPk=; b=hboWg3STCiWik36RWKmvttJsa+x48eQ+Omy/x8AI 15aJ5O+5TfxhBsUE3xFC4/sP1/iErs4bfPVFsNBHHoeXtqmJqMTqslmgKO0KD8Gr M/bQ2qlkj/bzTm3KFw8oCPaoSLnB/LJBeYSAQ9KNP0N8Hsvzcu7o9rwooKCAoeM3 VO4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f47.google.com MIME-Version: 1.0 X-Received: by 10.194.205.164 with SMTP id lh4mr2872667wjc.46.1380044517723; Tue, 24 Sep 2013 10:41:57 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Sep 2013 10:41:57 -0700 Message-ID: Subject: Re: Confused about several issues with setting up cron From: Steve To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes I would try the following methods: First make sure you are launching your local terminal with "Runas Administrator" checked, even if you are the Administrator user. I am also asuming you have done the normal stuff like cygcheck -c, and make sure you have not loaded duplicate dlls during your troubleshooting. If you ever get resource fork issues with parent != child error messages right in the term, that needs to be fixed by removing the duplicate dll file. And run /bin/rebaseall from dash or ash terminals (disable Anti-viri). Always manually right click and Run mintty as Administrator, also try changing the path in the mintty shortcut to c:\cygwin\bin\mintty.exe - % cygrunsrv -R cron reboot to be on the safe side After bootup use cygwin setup to uninstall cron, then run setup again and install it. % cron-config You shouldn't need todo anything custom here, yes and defaults to everything. It should be using your current user account, and that is hopefully the full fledged Administrator account, and not some other user with admin privs. Which also means you are currently logged into windows as the full Administrator account. % net start cron % EDITOR=vi or whatev % crontab -e create an entry that just fires of something basic very frequently for instance */1 * * * * echo "this" > /cygdrive/c/Users/ Administrator/Desktop/test.file.txt You many also want to throw in the PATH into the crontab itself for example: PATH=/bin:/usr/bin:/usr/local/bin As alternative to or in addition to the mentioned test.file.txt creation cron entry, you could use something like this: @reboot echo "this" > /cygdrive/c/Users/Administrator/Desktop/test.file.txt So that instead of something fireing off every minute for testing, it would fire it off each time you stop/start the cron service with "net stop cron" and "net start cron" Sorry for the messy response, i have no time right now. Good luck reading this email and getting it working. :) On Sat, Sep 21, 2013 at 6:00 PM, KARR, DAVID wrote: > CYGWIN_NT-6.1 1.7.25(0.270/5/3) 2013-08-31 20:39 i686 Cygwin > > I want to set up a cron job, so I have to get cron configured. I'm trying to follow the instructions I can find, but I'm seeing several issues. > > I'm surprised that there's nothing in the user guide or the FAQ about setting up cron. I had to settle for the various questions about this on StackOverflow and others. > > I must have done something at least half correct, because I believe this tells me that cron is running: > > % cygrunsrv -L > cron > > % cronevents > 2013/09/20 21:14:06 [dk068x] crontab: PID 5924: (dk068x) LIST (dk068x) > 2013/09/21 11:28:15 [dk068x] /usr/sbin/cron: PID 4980: (CRON) STARTUP (V5.0) > 2013/09/21 11:28:16 [dk068x] cron: PID 8424: `cron' service started > > However, I then do "crontab ", where "pathtomycrontabfile" is the path to my crontab file with the job I want to run. I then do "crontab -l" and it prints nothing. There is nothing in "/var/log/cron*". > > I did get some errors when I ran "cron-config", but I unfortunately lost that output. > > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple