ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vino_hymi <vinoh...@gmail.com>
Subject Re: ssh exectuion failure from build task in
Date Tue, 02 Mar 2010 01:26:14 GMT

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@host 'command'
> 
> You will probably get the same error. You'll probably need to source your
> .profile...
> 
> ssh user@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 <vinohymi@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
>> &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@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/ssh-exectuion-failure-from-build-task-in-tp27699231p27751308.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message