delorie.com/archives/browse.cgi | search |
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:from:to:subject:date:message-id:references | |
:in-reply-to:content-type:content-transfer-encoding | |
:mime-version; q=dns; s=default; b=EBb7Q1OaQb7+FQD1t7iHw5mwYdDi4 | |
lhzZ4i+8epJZvN2b3fEJTtc0V4prHLRlVkpBNKUjBDWYIU1wTP0jyJm/lcEvTRB6 | |
cM5JUOnBSzc+0IrDF46Hi20GH7ZT/dzDBF7XXoIRRlXcbDMu4KqfGX4Sx+iOPJbF | |
tuC4YgdUqyexyU= | |
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:from:to:subject:date:message-id:references | |
:in-reply-to:content-type:content-transfer-encoding | |
:mime-version; s=default; bh=XdPBNwdw1Ft6sFZ5aKfBIWf3waY=; b=FfC | |
NTa1ZbUQJ/6v/y3SD0OtDAkc9papASyeJF5VMydwuYIgSpbRDhfuHao9XU4YzEAa | |
Hw3R1TDDiKGGry4wcK3vIXmEfo+UBdQ6wttDy/kYSl46AQwLeTepM+mbth7I8e1A | |
h8D6ytNRCs0Y+heEAXOmzKFQ9/HDgL0smXeTcsiU= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RDNS_NONE autolearn=no version=3.3.2 |
X-HELO: | nbfkord-smmo05.seg.att.com |
X-MXL-Hash: | 5241aa214fbf44d2-dbcd5c963771a7f697090ac6143a659214c3a335 |
From: | "KARR, DAVID" <dk068x AT att DOT com> |
To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
Subject: | RE: Confused about several issues with setting up cron |
Date: | Tue, 24 Sep 2013 15:04:40 +0000 |
Message-ID: | <B8D164BED956C5439875951895CB4B2211477D08@WABOTH9MSGUSR8C.ITServices.sbc.com> |
References: | <B8D164BED956C5439875951895CB4B2211449DC8 AT WABOTH9MSGUSR8C DOT ITServices DOT sbc DOT com> <523F133D DOT 2060806 AT mailme DOT ath DOT cx> <523F48E1 DOT 8070905 AT mailme DOT ath DOT cx> <B8D164BED956C5439875951895CB4B221145A863 AT WABOTH9MSGUSR8C DOT ITServices DOT sbc DOT com> |
In-Reply-To: | <B8D164BED956C5439875951895CB4B221145A863@WABOTH9MSGUSR8C.ITServices.sbc.com> |
MIME-Version: | 1.0 |
X-RSA-Inspected: | yes |
X-RSA-Classifications: | public |
X-Spam: | [F=0.2000000000; CM=0.500; S=0.200(2010122901)] |
X-MAIL-FROM: | <dk068x AT att DOT com> |
X-AnalysisOut: | [v=2.0 cv=dr9s/Sc4 c=1 sm=0 a=srMsL6ituuWTYeky9Bs9mA==:17 a] |
X-AnalysisOut: | [=YnP4VLJI-BoA:10 a=NAHUnDNJZOEA:10 a=ofMgfj31e3cA:10 a=BLc] |
X-AnalysisOut: | [eEmwcHowA:10 a=kj9zAlcOel0A:10 a=zQP7CpKOAAAA:8 a=XIqpo32R] |
X-AnalysisOut: | [AAAA:8 a=56ieLrGGxeYA:10 a=Qedw_vBqpLJ9vd8zPVsA:9 a=CjuIK1] |
X-AnalysisOut: | [q_8ugA:10] |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id r8OF63gw001404 |
> -----Original Message----- > From: KARR, DAVID > Sent: Sunday, September 22, 2013 2:32 PM > Subject: RE: Confused about several issues with setting up cron > > > -----Original Message----- > > Sent: Sunday, September 22, 2013 12:46 PM > > Subject: Re: Confused about several issues with setting up cron > > > > On 09/22/2013 05:56 PM, bartels wrote: > > > On 09/22/2013 03:00 AM, 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 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. > > >> > > >> Must say your reporting of events is also lacking crucial elements > > >> If you re-install and give me more details, then I will try and answer > > your > > >> questions. > > > Ok. I assume you mean re-installing cron, not Cygwin. > > Yes, cron-config is what I meant. > > > > > > I followed the process described in the FAQ for removing a service. I > > then ran cron-config again. When I did this before, I selected to run > > cron as myself. I decided to make it run as the local system account this > > time (first running "passwd -R" and entering my password). It > > appeared to complete without errors or warnings. I did this in a "run as > > administrator" window. > > > > > > In a normal window, I then ran "crontab -e". I figured this would put > me > > into "vi" with an empty buffer. It just returned to the prompt. > > You should see a vi session. > > Do you have vi installed? > > What is the value of EDITOR? > > Yes, I have vi installed. EDITOR was blank, but I tried setting it to "vi" > and repeating the test, with no change. > > > This could indicate a deeper problem, confusing not just cron. > > > > > I then ran "crontab crontab" (the "crontab" file in my current directory > > is the file with the one job I want to run), and then did "crontab > > -l". Nothing. > > > > Are you familiar with the crontab format? If not, try this: > > $ man 5 crontab > > Yes, I am familiar with it, but here's the crontab I'm trying to set, in any > case: > > 0 * * * * monitorDataSource > > > > > > > I then went back to the administrator window. I ran "cronevents". This > > didn't show anything more than the cron service being started. I > > then ran "cronbug". I'm attaching the gzipped copy of this. > > > > > You will have more luck running cron 'as yourself': it is straightforward. > > Running it as a privileged user is more complicated. > > > > Is there a specific reason why you want to run it as system? > > No, only because running it as myself didn't work. > > In any case, I tried stopping and removing the service and rerunning cron- > config, running the service as myself. It didn't make any difference. No > response from "crontab -e", and "crontab crontab" seemingly ignored. Nothing > in "/var/log/cron.log", and nothing in "cronevents" except for the service > stopping and starting. Any more ideas about this? -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |