This is probably not an ant issue. When you sshexec something on the remote host, the environment is not setup the same as if you are logged in. Your .profile is not sourced and your PATH and other variable can be different. To troubleshoot this, I suggest running the command outside of ant like this...
ssh u...@host 'command' You will probably get the same error. You'll probably need to source your .profile... ssh u...@host '. .profile ; command' Once you get it working outside of Ant, then put the working command into your ant build file. -Rob Anderson On Mon, Feb 22, 2010 at 11:01 PM, vino_hymi <vinoh...@gmail.com> wrote: > > Hi, > > I am calling ant task for shell script to execute in the ftp machine. But > it > fails to execute and throws WRAPPER - start method threw an exception. But > when i run the script from the unix machine directly it executes. > > > <sshexec host="${ftp.host}" username="${ftp.usrname}" > password="${ftp.password}" command="${build.script} > out.out 2 > err.txt > < /dev/null &" timeout="10000" trust="true"/> > > ------------------------------------------------------------------------------------------- > all the values are places in properties file. > > Let me know if any information required from my side . > > Regards, > Vinodh' Kumar > -- > View this message in context: > http://old.nabble.com/ssh-exectuion-failure-from-build-task-in-tp27699231p27699231.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >