<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatic telnet login and command execution. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920736#M787124</link>
    <description>If you must use telnet then by far the easist method is to use Perl with the Net::Telnet module. Net::Telnet is not normally bundled with a Perl distribution can easily download and install it from &lt;A href="http://www.perl.org/CPAN." target="_blank"&gt;www.perl.org/CPAN.&lt;/A&gt; You get expect like pattern matching, error checking, and timeouts all for free. All of these are difficult at best with traditional scripting approaches.</description>
    <pubDate>Wed, 24 Aug 2005 09:02:21 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-08-24T09:02:21Z</dc:date>
    <item>
      <title>Automatic telnet login and command execution.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920733#M787121</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;  I want to write a script which will make a automatic telnet login to some devices and execute the command without any manual interventions.&lt;BR /&gt;&lt;BR /&gt;  rlogin and rsh is not possible i have some boxes which are UNIX embedded devices  they don’t have rlogin r rsh features.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2005 08:47:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920733#M787121</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-08-24T08:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet login and command execution.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920734#M787122</link>
      <description>question Part 2 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How to achive it how to login and execute the commands help me out in this?</description>
      <pubDate>Wed, 24 Aug 2005 08:49:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920734#M787122</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-08-24T08:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet login and command execution.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920735#M787123</link>
      <description>You can try as,&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;&lt;BR /&gt; echo "&lt;USERNAME&gt;\n"&lt;BR /&gt; sleep 2&lt;BR /&gt; echo "&lt;PASSWD&gt;\n"&lt;BR /&gt; sleep 2&lt;BR /&gt; echo "&lt;COMMAND&gt;\n"&lt;BR /&gt; sleep 2&lt;BR /&gt; echo "exit\n"&lt;BR /&gt;) | telnet &lt;DEVICE&gt;&lt;BR /&gt;&lt;BR /&gt;Change sleep value based on machine speed.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/DEVICE&gt;&lt;/COMMAND&gt;&lt;/PASSWD&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Wed, 24 Aug 2005 08:49:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920735#M787123</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-08-24T08:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet login and command execution.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920736#M787124</link>
      <description>If you must use telnet then by far the easist method is to use Perl with the Net::Telnet module. Net::Telnet is not normally bundled with a Perl distribution can easily download and install it from &lt;A href="http://www.perl.org/CPAN." target="_blank"&gt;www.perl.org/CPAN.&lt;/A&gt; You get expect like pattern matching, error checking, and timeouts all for free. All of these are difficult at best with traditional scripting approaches.</description>
      <pubDate>Wed, 24 Aug 2005 09:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920736#M787124</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-08-24T09:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet login and command execution.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920737#M787125</link>
      <description>try expect, you can download from &lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Simon</description>
      <pubDate>Wed, 24 Aug 2005 09:06:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920737#M787125</guid>
      <dc:creator>Camel_1</dc:creator>
      <dc:date>2005-08-24T09:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet login and command execution.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920738#M787126</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;  thanks for all of your responces. and  i have followed Muthukumars procedure as if it is very simple to follow.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2005 09:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920738#M787126</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-08-24T09:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic telnet login and command execution.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920739#M787127</link>
      <description>This is good script to use. thanks for sharing Muthukumar. &lt;BR /&gt;Muthu,&lt;BR /&gt;How can I use stty -echo and stty echo commands within this code as I just want to show only the script output of the remote server and want to hide the other screen messages. Please guide.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot....&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 09 Mar 2006 00:24:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-telnet-login-and-command-execution/m-p/4920739#M787127</guid>
      <dc:creator>anil_garg5</dc:creator>
      <dc:date>2006-03-09T00:24:08Z</dc:date>
    </item>
  </channel>
</rss>

