delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/23/04:02:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <iggster AT netspace DOT net DOT au>
Subject: Running shell scripts from Win NT (Ant)
Mime-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019