You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ramnish Kalsi <rk...@Lastminute.com> on 2005/09/16 13:18:30 UTC

ssh advice

Hi, I am working on a project to automate a build system, and the flow is
somewhat like this:
 
1. ssh into a unix machine. 
2. Sync the repository
3. dist the projects.
4. ssh into application-specific unix boxes and deploy appropriate apps to
appropriate boxes.
 
How can i gather the output of ssh task into a variable and take logical
decisions based upon the output.
What should be the best possible approach for this ?
 
thanks.
ramnish.

Ant version: 1.6.2
Java version: 1.4.2_03


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


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


Re: ssh advice

Posted by du...@yahoo.com.
There is an SSH task ... Mor einformation, here :
           http://www.jcraft.com/jsch/

\T,



--- Ramnish Kalsi <rk...@Lastminute.com> wrote:

> Hi, I am working on a project to automate a build system, and the flow is
> somewhat like this:
>  
> 1. ssh into a unix machine. 
> 2. Sync the repository
> 3. dist the projects.
> 4. ssh into application-specific unix boxes and deploy appropriate apps to
> appropriate boxes.
>  
> How can i gather the output of ssh task into a variable and take logical
> decisions based upon the output.
> What should be the best possible approach for this ?
>  
> thanks.
> ramnish.
> 
> Ant version: 1.6.2
> Java version: 1.4.2_03
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


--
Any fool can write code that a computer can understand. 
Good programmers write code that humans can understand.
                                                   Martin Fowler 
T. : +32 (0)2 742 05 94
M. : +32 (0)497 44 68 12
@  : duvelbier-tsmets@yahoo.com
Do you skype too ... ?

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