<?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: script with rsh has error stty : : I/O error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-rsh-has-error-stty-i-o-error/m-p/3303317#M184178</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I hope,&lt;BR /&gt;stty sane &lt;BR /&gt;can resolve the problem.&lt;BR /&gt;If your stty settings are not standard, you can store them by&lt;BR /&gt; STT=$(stty -g)&lt;BR /&gt; and restore by &lt;BR /&gt;stty $(echo $STT)&lt;BR /&gt;&lt;BR /&gt;BTW, how do you run rsh ?&lt;BR /&gt;remsh hostname command&lt;BR /&gt;or&lt;BR /&gt;ramsh hostname -n command ?&lt;BR /&gt;&lt;BR /&gt;The second way is better.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
    <pubDate>Sat, 12 Jun 2004 09:38:48 GMT</pubDate>
    <dc:creator>Victor Fridyev</dc:creator>
    <dc:date>2004-06-12T09:38:48Z</dc:date>
    <item>
      <title>script with rsh has error stty : : I/O error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-rsh-has-error-stty-i-o-error/m-p/3303316#M184177</link>
      <description>I run rsh through a k shell script. In the middle, if it dies a abnormal death, then "new line" are not working.&lt;BR /&gt;the stty output is :&lt;BR /&gt;rows = 24; columns = 80; ypixels = 0; xpixels = 0;&lt;BR /&gt;min = 1; time = 0;&lt;BR /&gt;erase = ^h; eof = ^a; swtch = &lt;UNDEF&gt;; &lt;BR /&gt;brkint -inpck -istrip icrnl -ixany imaxbel onlcr tab3 &lt;BR /&gt;-icanon -echo echoe echok echoctl echoke iexten &lt;BR /&gt;&lt;BR /&gt;Here note that "icanon" and "echo" are negative. &lt;BR /&gt;&lt;BR /&gt;If I try to correct this error by typing in the shell script, "stty icanon echo", then it gives a "stty : : I/O error". Tried setting "set i" and "tty -s". Still this error continues. Any ideas how to set the newline back in the script itself.&lt;/UNDEF&gt;</description>
      <pubDate>Sat, 12 Jun 2004 05:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-rsh-has-error-stty-i-o-error/m-p/3303316#M184177</guid>
      <dc:creator>Iyappan</dc:creator>
      <dc:date>2004-06-12T05:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: script with rsh has error stty : : I/O error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-rsh-has-error-stty-i-o-error/m-p/3303317#M184178</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I hope,&lt;BR /&gt;stty sane &lt;BR /&gt;can resolve the problem.&lt;BR /&gt;If your stty settings are not standard, you can store them by&lt;BR /&gt; STT=$(stty -g)&lt;BR /&gt; and restore by &lt;BR /&gt;stty $(echo $STT)&lt;BR /&gt;&lt;BR /&gt;BTW, how do you run rsh ?&lt;BR /&gt;remsh hostname command&lt;BR /&gt;or&lt;BR /&gt;ramsh hostname -n command ?&lt;BR /&gt;&lt;BR /&gt;The second way is better.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Sat, 12 Jun 2004 09:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-rsh-has-error-stty-i-o-error/m-p/3303317#M184178</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2004-06-12T09:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: script with rsh has error stty : : I/O error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-rsh-has-error-stty-i-o-error/m-p/3303318#M184179</link>
      <description>Not sure if this will help in your error or not, but in our remsh scripts the following variable declaration resolved stty errors-&lt;BR /&gt;export DISPLAY="$(hostname):00"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Sat, 12 Jun 2004 13:21:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-rsh-has-error-stty-i-o-error/m-p/3303318#M184179</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2004-06-12T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: script with rsh has error stty : : I/O error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-rsh-has-error-stty-i-o-error/m-p/3303319#M184180</link>
      <description>rsh (remsh on HP-UX) is a specialized coomand that is not interactive. The problem is that your remote machine has not protected /etc/profile and .profile (assuming POSIX or Korn shell) for non-interactive runs. The stty command (and tput ttytype tset tabs) must have a real terminal and your script is not a terminal. In both /etc/profile and .profile, use the tty command to encapsulate these commands:&lt;BR /&gt; &lt;BR /&gt;if tty -s&lt;BR /&gt;then&lt;BR /&gt;...commands like stty tput tabs, etc&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;In other words, the remote login must bypass these special commands when using remote shell in a script.</description>
      <pubDate>Sat, 12 Jun 2004 21:11:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-rsh-has-error-stty-i-o-error/m-p/3303319#M184180</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-06-12T21:11:14Z</dc:date>
    </item>
  </channel>
</rss>

