<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [streaming] Telnet session and PERL script</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>i tinkered with a perl script that does this, though i don't use it much anymore. might be usefull to you...</FONT>
</P>
<P><FONT SIZE=2>hope it's readable...</FONT>
</P>
<BR>
<P><FONT SIZE=2>-bob</FONT>
</P>
<P><FONT SIZE=2>CONFIDENTIALITY NOTICE: The information in this electronic mail transmission contains confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copy of the transmission is strictly prohibited.</FONT></P>
<BR>
<P><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: MICHEL NGUYEN [<A HREF="mailto:michel.nguyen@eturs.u-strasbg.fr">mailto:michel.nguyen@eturs.u-strasbg.fr</A>]</FONT>
<BR><FONT SIZE=2>> Sent: Monday, June 02, 2003 6:38 AM</FONT>
<BR><FONT SIZE=2>> To: vls@videolan.org</FONT>
<BR><FONT SIZE=2>> Subject: [streaming] Telnet session and PERL script</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Hello there !</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I'm trying to write a script in order to connect to a telnet session</FONT>
<BR><FONT SIZE=2>> from a web page. I succeed on it but on ly for a normal </FONT>
<BR><FONT SIZE=2>> telnet session.</FONT>
<BR><FONT SIZE=2>> VLS is also running a telnet session but cannot write response to the</FONT>
<BR><FONT SIZE=2>> PERL script and here is what I get :</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> 2003-06-02 15:32:14 [INFO/Vls] Telnet server initialised</FONT>
<BR><FONT SIZE=2>> 2003-06-02 15:32:49 [INFO/Vls] Processing incoming connection from</FONT>
<BR><FONT SIZE=2>> XXX.XXX.XXX.XXX</FONT>
<BR><FONT SIZE=2>> 2003-06-02 15:33:00 [WARN/Vls] Error when processing data from</FONT>
<BR><FONT SIZE=2>> XXX.XXX.XXX.XXX: closing connection(error was: Error: Connection reset</FONT>
<BR><FONT SIZE=2>> by peer)</FONT>
<BR><FONT SIZE=2>> 2003-06-02 15:33:00 [INFO/Vls] Closing connection from </FONT>
<BR><FONT SIZE=2>> XXX.XXX.XXX.XXX</FONT>
<BR><FONT SIZE=2>> 2003-06-02 15:33:00 [WARN/Vls] Received SIGPIPE: Unexpected </FONT>
<BR><FONT SIZE=2>> Broken Pipe</FONT>
<BR><FONT SIZE=2>> encountered</FONT>
<BR><FONT SIZE=2>> 2003-06-02 15:33:00 [ERROR/Vls] Connection from XXX.XXX.XXX.XXX could</FONT>
<BR><FONT SIZE=2>> not be closed: Error: Unable to close connection with XXX.XXX.XXX.XXX</FONT>
<BR><FONT SIZE=2>> Error: Unable to write string</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> And here is my testing script :</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> #!/usr/bin/perl</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> use Net::Telnet;</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> $vls = new Net::Telnet (Host=>"XXX.XXX.XXX.XXX", Port=>9999);</FONT>
<BR><FONT SIZE=2>> $vls -> login(Name=>'user',Password=>'passwd');</FONT>
<BR><FONT SIZE=2>> #print $vls->cmd("help");</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Where is my error ? Have I done anything wrong ?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -- </FONT>
<BR><FONT SIZE=2>> This is the streaming mailing-list, see </FONT>
<BR><FONT SIZE=2><A HREF="http://www.videolan.org/streaming/" TARGET="_blank">http://www.videolan.org/streaming/</A></FONT>
<BR><FONT SIZE=2>To unsubscribe, please read <A HREF="http://www.videolan.org/support/lists.html" TARGET="_blank">http://www.videolan.org/support/lists.html</A></FONT>
<BR><FONT SIZE=2>If you are in trouble, please contact <postmaster@videolan.org></FONT>
</P>
<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"></FONT>
</BODY>
</HTML>