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 , cygwin AT cygwin DOT com From: "Pierre A. Humblet" 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 Content-type: text/plain; charset=us-ascii; format=flowed Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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: > > > 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