X-Spam-Check-By: sourceware.org Date: Fri, 3 Feb 2006 13:46:18 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Cygnut cc: cygwin AT cygwin DOT com Subject: Re: Running bash from cron In-Reply-To: <2744886.post@talk.nabble.com> Message-ID: References: <2744886 DOT post AT talk DOT nabble DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk 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 On Fri, 3 Feb 2006, Cygnut (sent by Nabble.com) wrote: . 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/