<?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 shell use telnet not work normal.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018076#M541497</link>
    <description>Hi,all,&lt;BR /&gt;&lt;BR /&gt;    The test.sh is use telnet to connect the HP-UX 11.11u server,but it closed while the username echoed.&lt;BR /&gt;    But,when user telnet command is normal work.&lt;BR /&gt;    HOW/WHY it happened? Thanks.&lt;BR /&gt;------------------------&lt;BR /&gt;test.sh&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# test.sh&lt;BR /&gt;(&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "info"&lt;BR /&gt;sleep 6&lt;BR /&gt;echo "abc123"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "vt100"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "cd ..;pwd"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "exit"&lt;BR /&gt;) | telnet 192.168.36.21&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--------------------------------&lt;BR /&gt;% sh ./test.sh&lt;BR /&gt;&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to 192.168.36.21.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control on&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;BR /&gt;Authorized Access Only.&lt;BR /&gt;&lt;BR /&gt;login: info&lt;BR /&gt;Password: Connection closed by foreign host. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NORMAL work.&lt;BR /&gt;-----------------------------&lt;BR /&gt;telnet 192.168.36.21&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to 192.1168.36.21.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control on&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;BR /&gt;Authorized Access Only.&lt;BR /&gt;&lt;BR /&gt;login: info&lt;BR /&gt;Password: &lt;BR /&gt;Please wait...checking for disk quotas&lt;BR /&gt;(c)Copyright 1983-2000 Hewlett-Packard Co.,  All Rights Reserved.&lt;BR /&gt;(........)&lt;BR /&gt;Authorized Access Only.&lt;BR /&gt;TERM = (hp) vt100</description>
    <pubDate>Tue, 12 Jun 2007 04:30:08 GMT</pubDate>
    <dc:creator>NETSKYCN</dc:creator>
    <dc:date>2007-06-12T04:30:08Z</dc:date>
    <item>
      <title>shell use telnet not work normal....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018076#M541497</link>
      <description>Hi,all,&lt;BR /&gt;&lt;BR /&gt;    The test.sh is use telnet to connect the HP-UX 11.11u server,but it closed while the username echoed.&lt;BR /&gt;    But,when user telnet command is normal work.&lt;BR /&gt;    HOW/WHY it happened? Thanks.&lt;BR /&gt;------------------------&lt;BR /&gt;test.sh&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# test.sh&lt;BR /&gt;(&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "info"&lt;BR /&gt;sleep 6&lt;BR /&gt;echo "abc123"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "vt100"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "cd ..;pwd"&lt;BR /&gt;sleep 2&lt;BR /&gt;echo "exit"&lt;BR /&gt;) | telnet 192.168.36.21&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--------------------------------&lt;BR /&gt;% sh ./test.sh&lt;BR /&gt;&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to 192.168.36.21.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control on&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;BR /&gt;Authorized Access Only.&lt;BR /&gt;&lt;BR /&gt;login: info&lt;BR /&gt;Password: Connection closed by foreign host. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NORMAL work.&lt;BR /&gt;-----------------------------&lt;BR /&gt;telnet 192.168.36.21&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to 192.1168.36.21.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control on&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;BR /&gt;Authorized Access Only.&lt;BR /&gt;&lt;BR /&gt;login: info&lt;BR /&gt;Password: &lt;BR /&gt;Please wait...checking for disk quotas&lt;BR /&gt;(c)Copyright 1983-2000 Hewlett-Packard Co.,  All Rights Reserved.&lt;BR /&gt;(........)&lt;BR /&gt;Authorized Access Only.&lt;BR /&gt;TERM = (hp) vt100</description>
      <pubDate>Tue, 12 Jun 2007 04:30:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018076#M541497</guid>
      <dc:creator>NETSKYCN</dc:creator>
      <dc:date>2007-06-12T04:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: shell use telnet not work normal....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018077#M541498</link>
      <description>Hi,&lt;BR /&gt;and welcome to the forums !&lt;BR /&gt;&lt;BR /&gt;Please see these earlier threads:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=799710" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=799710&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=112262" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=112262&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please read:&lt;BR /&gt;&lt;A href="http://66.34.90.71/ITRCForumsEtiquette/after.html" target="_blank"&gt;http://66.34.90.71/ITRCForumsEtiquette/after.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please also read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;on how to reward any useful answers given to your questions.</description>
      <pubDate>Tue, 12 Jun 2007 04:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018077#M541498</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-06-12T04:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: shell use telnet not work normal....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018078#M541499</link>
      <description>Here are some other threads about telnet:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1128490" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1128490&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1049594" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1049594&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jun 2007 05:06:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018078#M541499</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-12T05:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: shell use telnet not work normal....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018079#M541500</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;sleep 1&lt;BR /&gt;&amp;gt;echo "info"&lt;BR /&gt;&amp;gt;sleep 6&lt;BR /&gt;&amp;gt;echo "abc123"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How about increasing the first sleep to 4 or 5 and after the user name to reduce the sleep value to 1 or 2 - as below:&lt;BR /&gt;&lt;BR /&gt;sleep 5&lt;BR /&gt;echo "info"&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "abc123"</description>
      <pubDate>Sun, 17 Jun 2007 02:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018079#M541500</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-06-17T02:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: shell use telnet not work normal....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018080#M541501</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For this kind of thing you'd do much better to use expect rather than try and create a shell script for it:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Note all the run time dependencies you also need to install.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Sun, 17 Jun 2007 04:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-use-telnet-not-work-normal/m-p/4018080#M541501</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2007-06-17T04:46:56Z</dc:date>
    </item>
  </channel>
</rss>

