ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@antbuild.com>
Subject AW: [Telnet] Debugging Telnet task?
Date Tue, 16 Sep 2003 20:46:59 GMT
Hi Konrad,
you probably need another read after the final <write string="cp
/home/${telnet.user}/${maven.war.final.name} /codedrop"/>
otherwise the telnet session is disconnected before the cp command is
executed.

Antoine

-----Ursprungliche Nachricht-----
Von: Konrad [mailto:khgustaf@yahoo.com]
Gesendet: Dienstag, 16. September 2003 21:04
An: user@ant.apache.org
Betreff: [Telnet] Debugging Telnet task?


Is there anyway besides executing Ant with the
"-debug" parameter for debugging the Telnet task as it
executes?  The below task is completing successfully,
but when I check the server it is apparent that the
Telnet commands were not actually executed
successfully...

<telnet server="${telnet.server}"
   userid="${telnet.user}"
   password="${telnet.pw}">

	<read timeout="3">]% </read>
	<write string="ls -al"/>

	<read timeout="3"> </read>
	<write string="/usr/seos/bin/sesudo regional"/>

	<read timeout="3"> </read>
	<write string="cp
/home/${telnet.user}/${maven.war.final.name}
/codedrop/"/>

</telnet>


Is there any thing wrong with this task?  If not, is
there any way to access any additional logging output
from the telnet task to see what the script is choking
on?

Thanks.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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




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


Mime
View raw message