delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/03/14:01:23

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 AT nabble DOT com>
Reply-To: Cygnut <s2audi AT yahoo DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Running bash from cron
In-Reply-To: <Pine.GSO.4.63.0602031342140.3425@access1.cims.nyu.edu>
MIME-Version: 1.0
X-Nabble-Sender: Nabble Forums <lists AT nabble DOT com>
X-Nabble-From: Cygnut <s2audi AT yahoo DOT com>
References: <2744886 DOT post AT talk DOT nabble DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0602031342140 DOT 3425 AT access1 DOT cims DOT nyu DOT edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

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/

- Raw text -


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