Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <5.0.2.1.0.20010523175752.03114e38@mail.netspace.net.au> X-Sender: iggster AT mail DOT netspace DOT net DOT au X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 23 May 2001 18:05:50 +1000 To: cygwin AT cygwin DOT com From: Eddie Fung Subject: Running shell scripts from Win NT (Ant) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed I want to execute a shell script from Windows NT in 'batch mode' (via Ant actually) and I am having problems in that I try to execute a bash command followed by the shell script name and parameters but cygwin seems to do nothing. To test that I can just run bash and a command on the command line I tried: C:\>bash echo 'hello' echo: /usr/bin/echo: No such file or directory Now I know that the echo.exe. is in the cygwin/bin directory. How does cygwin pick this up ? Actually what I want to do is: bash myShellScript.sh aaa bbb ccc (where aaa, bbb, ccc are parameters) and run this via Ant. I have looked through the archives and the FAQ but haven't found an answer to my problem. Can anyone out there help me ? -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple