delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | Yes, hits=6.6 required=5.0 tests=BAYES_50,BOTNET,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL |
X-Spam-Check-By: | sourceware.org |
Message-id: | <0L3W00J12WFN47F3@vms173019.mailsrvcs.net> |
Date: | Sat, 12 Jun 2010 13:26:10 -0400 |
To: | Ravindra Divi <cthoma29 AT yahoo DOT com>, cygwin AT cygwin DOT com |
From: | "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org> |
Subject: | Re: Need advice regarding cron---unable to start cron |
In-reply-to: | <111881.96879.qm@web45308.mail.sp1.yahoo.com> |
References: | <111881 DOT 96879 DOT qm AT web45308 DOT mail DOT sp1 DOT yahoo DOT com> |
MIME-version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
At 07:50 AM 6/12/2010, Ravindra Divi wrote: >Hi, > I installed cygwin on windows server 2003 and am trying to learn > about cron. > I created a simple script as follows: > #!/usr/bin/bash > #move the file every 1 min > echo 'date'>> datelog.txt > mv datelog.txt outbound > > I then created a crontab using the command crontab -e as follows: > ><snip> > but nothing is happening. I was able to successfully run the script > manually. But when trying to accomplish it through cron, nothing > happens. I checked the services in start -->administrative > tools-->services and I see cron Daemon running. I dont see anything > in logs either.Please advise. Did you use cron-config to start cron? I see the cron daemon is running under the Local System account, which on server 2003 is only possible in some cases. This is explained in /usr/share/doc/Cygwin/cron-X.README, in cron-config and in the Cygwin doc (about setuid). The doc also recommends running cronbug and sending the output as an attachment. Pierre -- 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 |