ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eran123 <e_hau...@hotmail.com>
Subject Re: sshexec on remote server
Date Sun, 10 Jan 2010 15:34:35 GMT

Hi Antoine,

Thank you very much. .profile made it worked :-)

Regards,
Eran


antoinell wrote:
> 
> Hello Eran,
> 
> maybe your problem is that you need to execute explicitly in your 
> command the .profile or .bashrc or ... of the target user and host.
> 
> you might want to do something like
> 
> command=". .profile &amp;&amp; cd ${env.scripts.folder.path} &amp;&amp;
> ./PingServer"
> 
> regards,
> 
> Antoine
> 
> 
> eran123 wrote:
>> Hi,
>>
>> I have a problem running scripts on a remote server. I reached the remote
>> script but since the script is using environment variables my ant task
>> (running on a local machine) does not have them. How can I solve this
>> problem?
>> My ant task looks like the following:
>>
>>
>> <target  name="ping server ssh" depends="init">  
>> 		<sshexec host="${env.server.host}"    username="${env.username}"   
>> trust="true"    
>> 			password="${env.password}"   outputproperty="out3"    
>> 			command="${env.scripts.folder.path} ; ./PingServer" />    
>> 	</target>
>>   
> 
> 
> ---------------------------------------------------------------------
> 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/sshexec-on--remote-server-tp27004641p27099379.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