Yes I'm using MKS. I'm using the exact buildfile that worked on Unix with
this:
<exec dir="." executable="sript.ksh" output="script.err"/>
On windows I get:
Execut failed: java.io.IOException: CreateProcess: script.ksh error=193
--- Nested Exception ---
java.io.IOException: CreateProcess: script.ksh error=193
at java.lang.Win32Process.create(Native Method)
etc.
etc.
I can run the script from the command line if I do:
./script.ksh
I saw a simialr Nested issue on Linux a while back and the fix was to use
the shell as the executable(/bin/sh) then use the script as an arguement so
this is what one has:
sh script.sh
-----Original Message-----
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 4:56 PM
To: [EMAIL PROTECTED]
Subject: RE: ant+shell script
--- Dana Rice <[EMAIL PROTECTED]> wrote:
> Dianne, the exec worked find as you explained on Unix but not on
> Windows. Do you know the correct format for executing a shell script
> from Ant on Windows?
Do you have a shell on your Windows machine? (MKS korn-shell, Cygwin
bash?) If you do, then you should be able to run a shell-script the same
way you're doing on Unix -- if you don't, then a shell-script isn't going
to work, with or without Ant.
(P.S. -- that's one "n" :)
Diane
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/