You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Tangirala, Kishore K [LTD]" <Ki...@mail.sprint.com> on 2003/12/09 22:27:20 UTC

ant task

Hi,

   I got this e-mailID from http://www.mail-archive.com
<http://www.mail-archive.com/> . If you can please give the solution for
this problem. 

 

   I am using ant to telnet remote server.  This is my code.

 

When I use this, it creates the "tmp" on server but hangs at read tag.

 

  <telnet userid="${USER}" password="${PASSWORD}" server="${SERVER}">

      <write string="mkdir -p tmp"/>

      <read string=">"/>

  </telnet>

 

When I use this code, it is NOT creating "tmp" dir. But executes the
telnet tag.

 

  <telnet userid="${USER}" password="${PASSWORD}" server="${SERVER}">

      <write string="mkdir -p tmp"/>

  </telnet>

 

Thanks in advance.

kishore

 


AW: ant task

Posted by Antoine Levy-Lambert <an...@antbuild.com>.
Hi Kishore,

<read string=">"/> might be understood wrongly by ant and the XML Parser
before ant "sees" your buildfile.
Try this :
<read string="&gt;"/>

Cheers,
Antoine
-----Ursprungliche Nachricht-----
Von: Tangirala, Kishore K [LTD]
[mailto:Kishore.K2.Tangirala@mail.sprint.com]
Gesendet: Dienstag, 9. Dezember 2003 22:27
An: ant-user@jakarta.apache.org
Betreff: ant task


Hi,

   I got this e-mailID from http://www.mail-archive.com
<http://www.mail-archive.com/> . If you can please give the solution for
this problem.
   I am using ant to telnet remote server.  This is my code.
When I use this, it creates the "tmp" on server but hangs at read tag.
  <telnet userid="${USER}" password="${PASSWORD}" server="${SERVER}">
      <write string="mkdir -p tmp"/>
      <read string=">"/>
  </telnet>

When I use this code, it is NOT creating "tmp" dir. But executes the
telnet tag.
  <telnet userid="${USER}" password="${PASSWORD}" server="${SERVER}">
      <write string="mkdir -p tmp"/>
  </telnet>


Thanks in advance.

kishore






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