----- Original Message -----
From: "Vaughn, Julia" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>