Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Tue, 5 Apr 2005 10:26:41 -0400 (EDT) From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> Reply-To: cygwin AT cygwin DOT com To: Danilo Turina <danilo DOT turina AT alcatel DOT it> cc: cygwin AT cygwin DOT com Subject: Re: Executing a shell script from within Windows In-Reply-To: <d2tmv2$q11$1@sea.gmane.org> Message-ID: <Pine.GSO.4.61.0504051025200.27356@slinky.cs.nyu.edu> References: <BA9A4E61966FA544A72EBDA49AB8C11257E8BD AT c00-071 DOT prirm DOT pride DOT it> <d2tmv2$q11$1 AT sea DOT gmane DOT org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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/