ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Telnet and tar -xvf
Date Thu, 12 Sep 2002 18:18:17 GMT

----- Original Message -----
From: "Vaughn, Julia" <Julia.Vaughn@cingular.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Thursday, September 12, 2002 5:32 AM
Subject: RE: Telnet and tar -xvf


> Here is a snippet (the tar actually executes in the middle of the
sequence):
>
> <telnet server="${server.name}" timeout="60">
>      <read>ogin: </read>
>      <write echo="false" string="${accutrack.user}"></write>
>      <read>assword:</read>
>      <write echo="false" string="${accutrack.pass}"></write>
>      <read string=">"></read>
>      <write string="cd ${accutrack.home}/${accutrack.applications}"/>
>      <read timeout="300" string=">"></read>
>      <write string="tar -xvf accutrack.war"/>
>      <read timeout="600" string=">"></read>
>      <write string="test.sh"/>
>      <read timeout="300" string=">"></read>
>      ...
> </telnet>
>
> When I nohup the tar through ant and tail nohup.out, I don't see the
results
> of the extraction. However, if I telnet into the box and tail nohup.out, I
> see the results. Why would that be?

I have no idea. I'm trying to remember if <telnet> buffers stuff during the
upload so you only see responses when it finishes. Maybe it really is taking
a long time to extract.

BTW, why are you untarring a .war file? Surely that is a jar file that jar
works on






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


Mime
View raw message