This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running bash from cron


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@cs.nyu.edu | igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]