From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12631 invoked by alias); 4 Jan 2009 11:07:54 -0000 Received: (qmail 12613 invoked by uid 22791); 4 Jan 2009 11:07:53 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from trikaliotis.net (HELO mail.trikaliotis.net) (77.37.17.23) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 04 Jan 2009 11:07:49 +0000 Received: from p57a3fcf8.dip.t-dialin.net ([87.163.252.248] helo=mail.trikaliotis.local) by mail.trikaliotis.net with esmtpa (Exim 4.63) (envelope-from ) id 1LJQpV-0007RI-Mp for cygwin@cygwin.com; Sun, 04 Jan 2009 12:07:45 +0100 Received: from trikalio by mail.trikaliotis.local with local (Exim 4.63) (envelope-from ) id 1LJQpP-0000RO-8g; Sun, 04 Jan 2009 12:07:31 +0100 Date: Sun, 04 Jan 2009 17:10:00 -0000 From: Spiro Trikaliotis To: cygwin@cygwin.com Message-ID: <20090104110730.GH4017@trikaliotis.net> Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-SA-Exim-Connect-IP: 87.163.252.248 X-SA-Exim-Mail-From: an-cygwin@spiro.trikaliotis.net Subject: Re: Trick cmd.exe of Windows XP to run cygwin Batch Script. X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on mail.trikaliotis.net) X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00076.txt.bz2 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/