delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/03/13:46:38

X-Spam-Check-By: sourceware.org
Date: Fri, 3 Feb 2006 13:46:18 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Cygnut <s2audi AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Running bash from cron
In-Reply-To: <2744886.post@talk.nabble.com>
Message-ID: <Pine.GSO.4.63.0602031342140.3425@access1.cims.nyu.edu>
References: <2744886 DOT post AT talk DOT nabble DOT com>
MIME-Version: 1.0
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

On Fri, 3 Feb 2006, Cygnut (sent by Nabble.com) wrote:

<http://cygwin.com/acronyms/#PCYMTWLL>.  Thanks.

> I have had much success running cygwin bash scripts from cron (Kalab's
> crons.exe), however on new machines I install cygwin on, the bash
> scripts don't run at all.

> the scripts are run from crons like
> 12 12 * * * * c:\cygwin\bin\bash c:\cygwin\tmp\mybash.sh

If you're having a problem with a third-party cron daemon, you'd be better
off asking their support forum for help.  This list only supports official
Cygwin packages.

If you can demonstrate that there is a problem running bash from a regular
cmd.exe window, we'd be interested in hearing it.  However, your command
above works just fine for me.

> Is there some enviornment setup I am missing ?

This is probably specific to the third-party cron, and thus is off-topic
for this list.  We just wouldn't know.

> If I use cygwin's cron would I fare better ?

Most likely yes (though you'd have to fall into the habit of using POSIX
paths, properly redirecting input and output, etc).  Plus, if you use
Cygwin cron and have the same problem, we'd be glad to help. :-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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