<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://wiki.tonioc.ovh/index.php?action=history&amp;feed=atom&amp;title=Perl%3A_telnet_dans_un_script_perl</id>
		<title>Perl: telnet dans un script perl - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.tonioc.ovh/index.php?action=history&amp;feed=atom&amp;title=Perl%3A_telnet_dans_un_script_perl"/>
		<link rel="alternate" type="text/html" href="https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;action=history"/>
		<updated>2026-04-17T13:13:27Z</updated>
		<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=324&amp;oldid=prev</id>
		<title>Toine le 28 juillet 2018 à 20:24</title>
		<link rel="alternate" type="text/html" href="https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=324&amp;oldid=prev"/>
				<updated>2018-07-28T20:24:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 28 juillet 2018 à 20:24&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;python&lt;/del&gt;&amp;quot; line='line'&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;perl&lt;/ins&gt;&amp;quot; line='line'&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; #!/bin/env perl&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; #!/bin/env perl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Toine</name></author>	</entry>

	<entry>
		<id>https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=323&amp;oldid=prev</id>
		<title>Toine le 28 juillet 2018 à 20:24</title>
		<link rel="alternate" type="text/html" href="https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=323&amp;oldid=prev"/>
				<updated>2018-07-28T20:24:14Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 28 juillet 2018 à 20:24&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line='line'&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; #!/bin/env perl&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; #!/bin/env perl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l106&quot; &gt;Ligne 106 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 107 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; debug (&amp;quot;server info: $response\\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; debug (&amp;quot;server info: $response\\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Perl]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Perl]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Snippets]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Snippets]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Toine</name></author>	</entry>

	<entry>
		<id>https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=180&amp;oldid=prev</id>
		<title>Toine le 21 février 2018 à 17:19</title>
		<link rel="alternate" type="text/html" href="https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=180&amp;oldid=prev"/>
				<updated>2018-02-21T17:19:29Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 21 février 2018 à 17:19&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l106&quot; &gt;Ligne 106 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 106 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; debug (&amp;quot;server info: $response\\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; debug (&amp;quot;server info: $response\\n&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Perl]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Snippets]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Toine</name></author>	</entry>

	<entry>
		<id>https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=83&amp;oldid=prev</id>
		<title>Toine : Toine a déplacé la page Utiliser telnet dans un script perl vers Perl: telnet dans un script perl</title>
		<link rel="alternate" type="text/html" href="https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=83&amp;oldid=prev"/>
				<updated>2018-02-03T18:30:48Z</updated>
		
		<summary type="html">&lt;p&gt;Toine a déplacé la page &lt;a href=&quot;https://wiki.tonioc.ovh/index.php/Utiliser_telnet_dans_un_script_perl&quot; class=&quot;mw-redirect&quot; title=&quot;Utiliser telnet dans un script perl&quot;&gt;Utiliser telnet dans un script perl&lt;/a&gt; vers &lt;a href=&quot;https://wiki.tonioc.ovh/index.php/Perl:_telnet_dans_un_script_perl&quot; title=&quot;Perl: telnet dans un script perl&quot;&gt;Perl: telnet dans un script perl&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 3 février 2018 à 18:30&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;fr&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Aucune différence)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Toine</name></author>	</entry>

	<entry>
		<id>https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=82&amp;oldid=prev</id>
		<title>Toine : Page créée avec «   #!/bin/env perl    use strict;    use Getopt::Long;   use FindBin;   use lib &quot;$FindBin::Bin&quot;;    use Telnet ;    # Variables for telnet call   my $session ;   my $remote... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.tonioc.ovh/index.php?title=Perl:_telnet_dans_un_script_perl&amp;diff=82&amp;oldid=prev"/>
				<updated>2018-02-03T18:28:39Z</updated>
		
		<summary type="html">&lt;p&gt;Page créée avec «   #!/bin/env perl    use strict;    use Getopt::Long;   use FindBin;   use lib &amp;quot;$FindBin::Bin&amp;quot;;    use Telnet ;    # Variables for telnet call   my $session ;   my $remote... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;  #!/bin/env perl&lt;br /&gt;
&lt;br /&gt;
  use strict;&lt;br /&gt;
&lt;br /&gt;
  use Getopt::Long;&lt;br /&gt;
  use FindBin;&lt;br /&gt;
  use lib &amp;quot;$FindBin::Bin&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  use Telnet ;&lt;br /&gt;
&lt;br /&gt;
  # Variables for telnet call&lt;br /&gt;
  my $session ;&lt;br /&gt;
  my $remoteaddr = &amp;quot;192.168.10.10&amp;quot; ;&lt;br /&gt;
  my $username = &amp;quot;user1&amp;quot; ;&lt;br /&gt;
  my $password = 'mypw' ;&lt;br /&gt;
  my $port = 23 ;&lt;br /&gt;
  my $response = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  my $resultFile = &amp;quot;/tmp/dummylog.txt&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  my $debug=1;    # set 0 for no debug information&lt;br /&gt;
  #-------------------------------------------------------------------------------&lt;br /&gt;
  # show debug information&lt;br /&gt;
&lt;br /&gt;
  sub debug {&lt;br /&gt;
    print @_ if ($debug);&lt;br /&gt;
  }&lt;br /&gt;
  #-------------------------------------------------------------------------------&lt;br /&gt;
  # retrieve and evaluate the command's response&lt;br /&gt;
&lt;br /&gt;
  sub getResponse {&lt;br /&gt;
    my @response = @_;&lt;br /&gt;
    my $text = &amp;quot;&amp;quot;;&lt;br /&gt;
    foreach( @response ) {&lt;br /&gt;
      $text = $text . $_;&lt;br /&gt;
    }&lt;br /&gt;
    return $text;&lt;br /&gt;
  }&lt;br /&gt;
  #-------------------------------------------------------------------------------&lt;br /&gt;
  # retrieve and evaluate the command's response&lt;br /&gt;
&lt;br /&gt;
  sub sendCommandAndGetResponse {&lt;br /&gt;
    my ($cmd, $prompt) = @_;&lt;br /&gt;
&lt;br /&gt;
    if ($prompt) {&lt;br /&gt;
      $response = getResponse( $session -&amp;gt; cmd (String =&amp;gt; &amp;quot;$cmd&amp;quot;,&lt;br /&gt;
                      Timeout =&amp;gt; 10  ));&lt;br /&gt;
    } else {&lt;br /&gt;
      $response = getResponse( $session -&amp;gt; cmd (String =&amp;gt; &amp;quot;$cmd&amp;quot;,&lt;br /&gt;
                      Timeout =&amp;gt; 10, Prompt =&amp;gt; &amp;quot;$prompt&amp;quot; ));&lt;br /&gt;
    }&lt;br /&gt;
    if( $response &amp;gt; &amp;quot;1&amp;quot; ) {&lt;br /&gt;
      print &amp;quot;error: $response.\\n&amp;quot;;&lt;br /&gt;
      exit;&lt;br /&gt;
    } else {&lt;br /&gt;
      debug(&amp;quot;$response.\\n&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  #-------------------------------------------------------------------------------&lt;br /&gt;
  # check options&lt;br /&gt;
  #&lt;br /&gt;
    usage() unless ( GetOptions(&lt;br /&gt;
                      &amp;quot;addr=s&amp;quot;  , \\$remoteaddr,&lt;br /&gt;
                      &amp;quot;user=s&amp;quot;  , \\$username,&lt;br /&gt;
                      &amp;quot;passw=s&amp;quot; , \\$password,&lt;br /&gt;
      &amp;quot;outfile=s&amp;quot; , \\$resultFile,&lt;br /&gt;
                    )&lt;br /&gt;
        );&lt;br /&gt;
  # Start a Telnet session to remote address&lt;br /&gt;
  if ( $remoteaddr ne &amp;quot;&amp;quot; ) {&lt;br /&gt;
    eval { $session = Telnet -&amp;gt; new (Timeout =&amp;gt; 10,&lt;br /&gt;
                              Prompt =&amp;gt; &amp;quot;/.*$username #/&amp;quot;,&lt;br /&gt;
                              # Prompt =&amp;gt; &amp;quot;/System&amp;gt;/&amp;quot;,&lt;br /&gt;
                Port =&amp;gt; $port) or exit ; };&lt;br /&gt;
    if( $@ ) {&lt;br /&gt;
      my $text = $@;&lt;br /&gt;
      $text =~ s/.+://;&lt;br /&gt;
      $text =~ s/at.*//;&lt;br /&gt;
      print &amp;quot;Telnet session could not be instanciated: $text.\\n&amp;quot;;&lt;br /&gt;
      exit;&lt;br /&gt;
    }&lt;br /&gt;
    #&lt;br /&gt;
    eval { $session -&amp;gt; open ($remoteaddr) ; };&lt;br /&gt;
    if( $@ ) {&lt;br /&gt;
      my $text = $@;&lt;br /&gt;
      $text =~ s/.+://;&lt;br /&gt;
      $text =~ s/at.*//;&lt;br /&gt;
      print &amp;quot;$remoteaddr: Telnet could not be opened: $text.\\n&amp;quot;;&lt;br /&gt;
      exit;&lt;br /&gt;
    }&lt;br /&gt;
    #&lt;br /&gt;
    debug(&amp;quot;$remoteaddr: Telnet opened.\\n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    eval { $session -&amp;gt; login (Name =&amp;gt; $username,&lt;br /&gt;
                       Password =&amp;gt; $password) ; };&lt;br /&gt;
    if( $@ ) {&lt;br /&gt;
      debug(&amp;quot;$remoteaddr: unsuccessful login attempt!\\n&amp;quot;);&lt;br /&gt;
      exit;&lt;br /&gt;
    }&lt;br /&gt;
    else {&lt;br /&gt;
      debug(&amp;quot;$remoteaddr: successfully logged in.\\n&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    #&lt;br /&gt;
    # prevent from receiving garbage&lt;br /&gt;
    sendCommandAndGetResponse(&amp;quot;uname -a&amp;quot;);&lt;br /&gt;
    debug (&amp;quot;server info: $response\\n&amp;quot;);&lt;br /&gt;
  }&lt;/div&gt;</summary>
		<author><name>Toine</name></author>	</entry>

	</feed>