When I just run the snippet of the following from the command line in Windows XP, the Ant target executes as I expect. However, when I run it from Hudson (v1.398) it says the script completes fine, but it doesn't actually do anything. It does not run the AdminShellExec.exe at all. What am I doing wrong? I have tried this several different ways in the ant script too (without .txt file, do cmd.exe /C first, use arg line instead of redirector, etc...), but same issue.
<target name="stop-model">
<echo file="Script.txt">STOP model1 Force exit</echo>
<exec executable="AdminShellExec.exe">
<redirector input="Script.txt"></redirector>
</exec>
</target>