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: Executing a shell script from within Windows


On Tue, 5 Apr 2005, Danilo Turina wrote:

> Marchioni Francesco wrote:
> > Hi cygwin users,

> > I wonder if it's possible to execute a unix shell script from inside
> > the windows command prompt using cygwin. Maybe there's an utility in
> > cygwin which enables execution of shells from windows ?
> > Thanks in advance
> > Francesco
>
> maybe:
>
> C:\>bash yourscript
>
> or
>
> C:\>sh yourscript

Actually, "bash -c yourscript" or "sh -c yourscript", if you want to honor
the shebang...  Or, better yet, "bash --login -c yourscript", to replicate
the shell command line environment.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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