<?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 HP-UX telnet command is not getting termianted while redirecting the content in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-telnet-command-is-not-getting-termianted-while-redirecting/m-p/6988395#M528556</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am preparing a script to check if telnet connectivity is available on the server. Scrit works fine for other OS(Redhat linux and Solaris).&lt;/P&gt;&lt;P&gt;I'm trying to get the output(banner message) to a file and I will check for a keyword "Escape" if the word exists then telnet is enabled and if not is is disabled.&lt;/P&gt;&lt;P&gt;command is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;telnet `"hostname"` &amp;lt; "dummy.txt" 2&amp;gt;&amp;amp;1 &amp;gt; telnet.txt&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output is getting redirected to telnet.txt but the command is not getting terminted , it stops like below,&lt;/P&gt;&lt;P&gt;# telnet `"hostname"` &amp;lt; "dummy.txt" 2&amp;gt;&amp;amp;1 &amp;gt; telnet.txt&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;/P&gt;&lt;P&gt;&amp;nbsp;then I need to open an another session to kill it..&lt;/P&gt;&lt;P&gt;But I'm getting required output in telnet.txt (word "Escape")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# telnet `"hostname"` &amp;lt; "dummy.txt" 2&amp;gt;&amp;amp;1 &amp;gt; telnet.txt&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;BR /&gt;Killed&lt;BR /&gt;# cat telnet.txt&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to ussltcsnh5001.solutions.glbsnet.com.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control on&lt;/P&gt;&lt;P&gt;HP-UX ussltcsnh5001 B.11.31 U ia64 (ta)&lt;/P&gt;&lt;P&gt;login:&lt;/P&gt;&lt;P&gt;Kindly help me to get this resolved.&lt;/P&gt;&lt;P&gt;-Antony&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 10:29:20 GMT</pubDate>
    <dc:creator>gp5anto</dc:creator>
    <dc:date>2017-11-14T10:29:20Z</dc:date>
    <item>
      <title>HP-UX telnet command is not getting termianted while redirecting the content</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-telnet-command-is-not-getting-termianted-while-redirecting/m-p/6988395#M528556</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am preparing a script to check if telnet connectivity is available on the server. Scrit works fine for other OS(Redhat linux and Solaris).&lt;/P&gt;&lt;P&gt;I'm trying to get the output(banner message) to a file and I will check for a keyword "Escape" if the word exists then telnet is enabled and if not is is disabled.&lt;/P&gt;&lt;P&gt;command is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;telnet `"hostname"` &amp;lt; "dummy.txt" 2&amp;gt;&amp;amp;1 &amp;gt; telnet.txt&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output is getting redirected to telnet.txt but the command is not getting terminted , it stops like below,&lt;/P&gt;&lt;P&gt;# telnet `"hostname"` &amp;lt; "dummy.txt" 2&amp;gt;&amp;amp;1 &amp;gt; telnet.txt&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;/P&gt;&lt;P&gt;&amp;nbsp;then I need to open an another session to kill it..&lt;/P&gt;&lt;P&gt;But I'm getting required output in telnet.txt (word "Escape")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# telnet `"hostname"` &amp;lt; "dummy.txt" 2&amp;gt;&amp;amp;1 &amp;gt; telnet.txt&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;BR /&gt;Killed&lt;BR /&gt;# cat telnet.txt&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to ussltcsnh5001.solutions.glbsnet.com.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control on&lt;/P&gt;&lt;P&gt;HP-UX ussltcsnh5001 B.11.31 U ia64 (ta)&lt;/P&gt;&lt;P&gt;login:&lt;/P&gt;&lt;P&gt;Kindly help me to get this resolved.&lt;/P&gt;&lt;P&gt;-Antony&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 10:29:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-telnet-command-is-not-getting-termianted-while-redirecting/m-p/6988395#M528556</guid>
      <dc:creator>gp5anto</dc:creator>
      <dc:date>2017-11-14T10:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX telnet command is not getting termianted while redirecting the content</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-telnet-command-is-not-getting-termianted-while-redirecting/m-p/6988851#M528557</link>
      <description>&lt;P&gt;What's in dummy.txt?&amp;nbsp; Do you have "quit" in it?&lt;/P&gt;&lt;P&gt;Or perhaps: ~.&lt;/P&gt;&lt;P&gt;to close the connection.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2017 02:56:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-telnet-command-is-not-getting-termianted-while-redirecting/m-p/6988851#M528557</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2017-11-19T02:56:39Z</dc:date>
    </item>
  </channel>
</rss>

