X-Spam-Check-By: sourceware.org
Message-ID: <2745584.post@talk.nabble.com>
Date: Fri, 3 Feb 2006 11:01:12 -0800 (PST)
From: "Cygnut (sent by Nabble.com)" <lists@nabble.com>
Reply-To: Cygnut <s2audi@yahoo.com>
To: cygwin@cygwin.com
Subject: Re: Running bash from cron
In-Reply-To: <Pine.GSO.4.63.0602031342140.3425@access1.cims.nyu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-Sender: Nabble Forums <lists@nabble.com>
X-Nabble-From: Cygnut <s2audi@yahoo.com>
References: <2744886.post@talk.nabble.com> <Pine.GSO.4.63.0602031342140.3425@access1.cims.nyu.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


Thanks Igor. I already uninstalled crons and did this

cygrunsrv -I cron -p /usr/sbin/cron -a -D
cygrunsrv -S cron

I put a simple script in there like this
51 * * * * /tmp/doit.sh
ran crontab `cat the above file`
crontab -l yields above
net stop cron
net start cron < i realize this may not be required, but I am trying everything before writing >
doit.sh is

#!/bin/bash
PATH=/usr/bin:/bin
echo OK > /tmp/OK

at 52 minutes no /tmp/OK file

/var/log/cron.log just says cron started

How can I troubleshoot this ? I really need it to work or I have to write my program in f*cking vbscript, which I hate.
Thanks

--
View this message in context: http://www.nabble.com/Running-bash-from-cron-t1054952.html#a2745584
Sent from the Cygwin Users forum at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

