Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: ssh exectuion failure from build task in

vino_hymi

2010-03-01

Replies: Find Java Web Hosting

Author LoginPost Reply

Yes Robert, the env is the issue. Thanks for the reply.

Regards,
Vinodh' Kumar


Robert Anderson-6 wrote:
>
> 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 user@(protected)'
>
> You will probably get the same error. You'll probably need to source your
> .profile...
>
> ssh user@(protected)'
>
> 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 <vinohymi@(protected):
>
>>
>> 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
>> &lt; /dev/null &amp;" 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-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>

--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.