eran,

could you try with the executable argument to "/bin/sh"?
did you try to launch it on the unix server using the ant command line?

regards

supareno

>
> Hi,
>
> I hope you can help me figure out what is wrong with my script.
> I am trying to run shell script calls stopServer. The ant script is like the
> following:
>
> <target name="stop server" depends="" description="stop weblogic server">
>               <exec
> dir="/clwutabp/clw/aim/clwabp12/J2EEServer/config/ABC-FULL/ABCServer/scripts"
>                       vmlauncher="true" executable="/usr/bin/sh">
>                       <arg value="-c" />
>                       <arg value="forceShutdownServer"/>
>               </exec>
> </target>
>
> However when trying to run the task on Eclipse I receive the following
> error:
> "The directory you specified does not exist"
>
> The folder exist and also the script. I am trying to run the script via a
> diferent user as the owner of the script name forceShutdownServer. I changed
> the mod to be 777 for both folder and script but without success to over
> come the above error.
> Any idea what I am doing wrong?
>
> Please note that I double click on the ant task from remote connection using
> NT server. The ant file is located on a unix.
>
> Thanks,
> Eran
> --
> View this message in context:
> http://old.nabble.com/running-shell-script-on-unix-tp26937374p26937374.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to