delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/09/22/15:45:53

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=Wt/joWUxggBkHceZQyiM2LlbCrsn+Gse35HbFqQ/8SA
Cwkox8rYm06BaJRnfEqPOZ0q9M2P1o6M+B7beots7chhvQvcSGgFL3p67BKFcDyK
SvjYrd8WUdFUKOyiJTlTRB5HqdWARTwXRH97Vs2hkIlgy+q2pXoKnwQ7dFTGptEU
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=QwbQML16R+H0VYGuhrczrwqjmXw=; b=o6IWfPerw9TDTkV41
BkfRetoel1j2SnjQ+F4oF8kfzSZyGbOQ1B1Hv83QIE/jLqGPkg64XM1o7vy+IxvY
1CirsvXjqC+rdUH7YREi+U8CZrbmtogCW/6f7O0Kbbcri+tesXNGSNAOeva4G+ZH
dmdk4NF62I3CwEtpsrcKXsrcjI=
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=3.1 required=5.0 tests=AWL,BAYES_50,RCVD_IN_PBL,RCVD_IN_RP_RNBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,TVD_RCVD_IP autolearn=no version=3.3.2
X-HELO: konqorde.nl
Message-ID: <523F48E1.8070905@mailme.ath.cx>
Date: Sun, 22 Sep 2013 21:45:37 +0200
From: bartels <bartels AT mailme DOT ath DOT cx>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130704 Icedove/17.0.7
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Confused about several issues with setting up cron
References: <B8D164BED956C5439875951895CB4B2211449DC8 AT WABOTH9MSGUSR8C DOT ITServices DOT sbc DOT com> <523F133D DOT 2060806 AT mailme DOT ath DOT cx>
In-Reply-To: <523F133D.2060806@mailme.ath.cx>
X-IsSubscribed: yes

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?

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

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

- bartels



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019