Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 22 Oct 2003 12:28:19 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Calling bash shell from W2K batch script Message-ID: <20031022162819.GC18735@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4FF77D01E13B214590F4FA3E2C3021D0419602 AT pecos DOT csw DOT alewife DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FF77D01E13B214590F4FA3E2C3021D0419602@pecos.csw.alewife.net> User-Agent: Mutt/1.4.1i On Wed, Oct 22, 2003 at 12:19:13PM -0400, Jared Ingersoll wrote: >Hi, > >I was wondering if someone could provide the syntax for calling a cygwin >shell script from the Windows 2000 cmd prompt. I'm trying to do something >like this: > >d:\>start c:\cygwin\bin\bash -c "./script1.sh" > >But it doesn't seem to be working quite right, some pipes and such don't >work and I can't execute a command in the script like > file.`date +%Y%m%d`. >What I'm trying to do is write a cygwin script to execute some mixed NT >commands and unix commands to check some network stuff, move around some >files etc. The reason I want to do it this way is to use windows task >scheduler to automate the task on a nightly bases. You may be stumbling into the problem that was recently fixed in bash. It manifested as "setup hanging" but it would have affected the use of pipes in processes that are started like you describe above. So, if you haven't done so already, please update your installation. If you have done this then please go over to http://cygwin.com/problems.html and provide the kind of details mentioned on that page. cgf -- 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/