X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_20 X-Spam-Check-By: sourceware.org Date: Mon, 29 Mar 2010 05:16:31 +0000 From: jurriaan AT rivierenland DOT xs4all DOT nl To: cygwin AT cygwin DOT com Subject: Re: cron not working Message-ID: <20100329051631.GA2683@onderneming10.xs4all.nl> References: <676bcee21003281522m30d183c3m824e36f6ff6037b3 AT mail DOT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <676bcee21003281522m30d183c3m824e36f6ff6037b3@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-IsSubscribed: yes 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 From: Rajashekar Chintalapati Date: Sun, Mar 28, 2010 at 02:22:57PM -0800 > Hi, > ? I am trying to run a simple script using crontab. > > $ more /cygdrive/c/list > ls -ltr /cygdrive/c/ > /tmp/li.txt > > 2010/03/28 01:01:01 [SYSTEM] /usr/sbin/cron: PID 4068: (Administrator) > CMD (/cygdrive/c/list > /tmp/error.log 2>&1) > > > But after that not sure what went wrong, if i change the time, cron is > not executing the /cygdrive/c/list. > Since you'r running Cygwin, I'd presume you want unix scripts. In that case, a #!/bin/sh is missing at the top. If you want a dos script, I'd suggest using DOS filenames, using \ as separator. Does that solve your problem? Kind regards, Jurriaan -- "I learn more sometimes from questions I know the answers to." Guy Gavriel Kay - A Song for Arbonne -- 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