You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by An...@mn.man.de on 2001/09/11 12:49:34 UTC

Telnet Task - who to get the output of any started process immediately

I'm using the telnet task to login to a Linux Box
and start another Ant process there.

Right now I can see the output of the remote ant process
not before it has finished executing.

I would like to see all the output of the remote Ant Task
immediately (while it is executing) in the window of my
local Ant process.

Is this possible? If yes - how?

I already tried writing several <read> - tags,
but this is not what I actually want.

     <telnet
          server="${deployment.server}"
          initialCR="YES">
       <read>ogin:</read>
       <write>wasadm</write>
       <write>password</write>
       <read>ome/wasadm</read>
       <write>cd projects/TKBWebApp</write>
       <read>ome/wasadm/projects/TKBWebApp</read>
       <write>ant -buildfile build.webapp.xml</write>
       <read>init:</read>
       <read>clean:</read>
       <read>compile:</read>
       <read>package:</read>
       <read>dist:</read>
       <!-- read>ome/wasadm/projects/TKBWebApp</read -->
       <!-- Wir warten auf die Ausgabe der Dauer des Build Prozesses.
-->
       <!-- Diese lautet >>Total time: XXX seconds<< und ist der letzte
Output.  -->
       <read>seconds</read>
       <write>exit</write>
       <read>logout</read>
     </telnet>

Any help is very much appreciated.

Mit freundlichen Grüssen

A. Grimm

****************************************************
MAN Nutzfahrzeuge AG
Anton Grimm
Abt. IDP (SoftwareProduktionsumgebungen)
Dachauerstr.667
80995 München

Tel.:      089/1580-1054
Fax:      089/1580-911054
E-Mail: Anton_Grimm@mn.man.de
****************************************************