X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 15 May 2009 18:51:22 -0400 Message-ID: <183c528b0905151551q1fab1270t2849af83b23b64b@mail.gmail.com> Subject: Re: Calling Cygwin to start a shellscript From: Brian Mathis To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: 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, May 15, 2009 at 5:35 PM, Thomas Wiedmann wrote: > Hello, > > How can a shellscript be called from the Windows cmd console using Cygwin, > i. e. by which command, options and arguments has Cygwin to be called to run > a shellscript, e. g. myscript.sh? > > Thomas Wiedmann What I have done is associate files with a .sh extension to run the bash.exe file. Works for me, but I'm not sure if it pulls in all the environment variables - but I don't need them. -- 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/