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: Trick cmd.exe of Windows XP to run cygwin Batch Script.


Hello,

* On Sun, Jan 04, 2009 at 06:20:20PM +0800 Hongyi Zhao wrote:
 
> I've some cygwin/bash scripts and I want to invoke them without log
> into the Cygwin's bash terminal.  Is this possible?

d:\> bash -c ./myscript

Note that you might have to add the path to bash (c:\cygwin\bin\bash or
similar) in case it is not in your path. Also, you might want/need to
add --login or -l to the options of bash.

HTH,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/

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