You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Bo...@emc.com on 2002/10/01 10:36:38 UTC

RE: TelnetTask help needed!

Maybe you can try the reads and writes with their string attribute:

<telnet server="localhost">
	  <read  string="C:\>"/>
	  <write string="dir"/>
	  <read  string="C:\>"/>
</telnet>

Hope this helps,

Nick.
 

-----Original Message-----
From: Woo, Chen Ching [mailto:cwoo@spss.com]
Sent: Monday, September 30, 2002 9:16 PM
To: Ant Users List
Subject: TelnetTask help needed!


I've the following script to use the Telnet task using Ant1.5 on win2000:

<project name="telnetTest" default="telnet">
<target name="telnet">
	<telnet server="localhost">
	  <read>C:\></read>
	  <write>dir</write>
	  <read>C:\></read>
	</telnet>
  </target>
</project>

Ant seems to be waiting for the 'C:\>' input stream forever. I know I must
have
done something wrong in the <read> sub-task.

Any help will be greatly appreciated.

Thanks.

chen.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>