<?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: Strange tty behaviour in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259073#M888263</link>
    <description>&lt;BR /&gt;Do you have something like this in your .profile??&lt;BR /&gt;&lt;BR /&gt;   # Set up the terminal:&lt;BR /&gt;        if [ "$TERM" = "" ]&lt;BR /&gt;        then&lt;BR /&gt;                eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;        else&lt;BR /&gt;                eval ` tset -s -Q `&lt;BR /&gt;        fi&lt;BR /&gt;        stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;        stty hupcl ixon ixoff&lt;BR /&gt;        tabs&lt;BR /&gt;&lt;BR /&gt;        echo&lt;BR /&gt;        echo "Value of TERM has been set to \"$TERM\". "&lt;BR /&gt;        export TERM &lt;BR /&gt;&lt;BR /&gt;        EDITOR=vi&lt;BR /&gt;        export EDITOR&lt;BR /&gt;&lt;BR /&gt;   fi          # if !VUE&lt;BR /&gt; &lt;BR /&gt;Also, are you telnet'ing or rlogin'ing(?) from another unix box or from a M$ PC? If so, what software (terminal emulator) are you using?&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Mon, 26 Apr 2004 08:33:33 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2004-04-26T08:33:33Z</dc:date>
    <item>
      <title>Strange tty behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259072#M888262</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a weird problem. When I telnet into machine x I login in fine - no errors. When I rlogin, the profile develops an error which I have traced to the use of `tty` to determine the device file. When rlogged in, typing tty produces "not a tty" (which is where the profile error comes from) and when I type ps I get "ps: don't know which terminal to select".&lt;BR /&gt;&lt;BR /&gt;Can anyone help?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Mon, 26 Apr 2004 08:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259072#M888262</guid>
      <dc:creator>Tony Walker</dc:creator>
      <dc:date>2004-04-26T08:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tty behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259073#M888263</link>
      <description>&lt;BR /&gt;Do you have something like this in your .profile??&lt;BR /&gt;&lt;BR /&gt;   # Set up the terminal:&lt;BR /&gt;        if [ "$TERM" = "" ]&lt;BR /&gt;        then&lt;BR /&gt;                eval ` tset -s -Q -m ':?hp' `&lt;BR /&gt;        else&lt;BR /&gt;                eval ` tset -s -Q `&lt;BR /&gt;        fi&lt;BR /&gt;        stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;        stty hupcl ixon ixoff&lt;BR /&gt;        tabs&lt;BR /&gt;&lt;BR /&gt;        echo&lt;BR /&gt;        echo "Value of TERM has been set to \"$TERM\". "&lt;BR /&gt;        export TERM &lt;BR /&gt;&lt;BR /&gt;        EDITOR=vi&lt;BR /&gt;        export EDITOR&lt;BR /&gt;&lt;BR /&gt;   fi          # if !VUE&lt;BR /&gt; &lt;BR /&gt;Also, are you telnet'ing or rlogin'ing(?) from another unix box or from a M$ PC? If so, what software (terminal emulator) are you using?&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 26 Apr 2004 08:33:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259073#M888263</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-04-26T08:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tty behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259074#M888264</link>
      <description>Harry, this is where the error is occuring:&lt;BR /&gt;&lt;BR /&gt;# Set TERM variables&lt;BR /&gt;#&lt;BR /&gt;if [ `tty` = /dev/console ]&lt;BR /&gt;then&lt;BR /&gt;        if [ $LOGNAME = "root" ]&lt;BR /&gt;        then&lt;BR /&gt;                TERM=hp&lt;BR /&gt;        else&lt;BR /&gt;                TERM=wyse50&lt;BR /&gt;        fi&lt;BR /&gt;        WSID=no&lt;BR /&gt;else&lt;BR /&gt;        TERM=vt220&lt;BR /&gt;&lt;BR /&gt;I'm telnetting/rlogin from another HP machine.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Mon, 26 Apr 2004 08:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259074#M888264</guid>
      <dc:creator>Tony Walker</dc:creator>
      <dc:date>2004-04-26T08:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tty behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259075#M888265</link>
      <description>Tony,&lt;BR /&gt; &lt;BR /&gt;rlogin, then issue:&lt;BR /&gt; &lt;BR /&gt;tset -r&lt;BR /&gt; &lt;BR /&gt;What term type is returned?&lt;BR /&gt; &lt;BR /&gt;Your script, ON the CONSOLE, will set root to termtype=hp and any other account on the console to "wyse50".&lt;BR /&gt; &lt;BR /&gt;All other locations will set the TERM to vt220. Are you exporting TERM?&lt;BR /&gt; &lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 26 Apr 2004 10:29:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259075#M888265</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-04-26T10:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tty behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259076#M888266</link>
      <description>Harry, when I type in tset -r I get "Terminal type is vt220&lt;BR /&gt;Erase is Backspace&lt;BR /&gt;Kill is Ctrl-U"&lt;BR /&gt;&lt;BR /&gt;And TERM is exported a few lines further down than the ones I've detailed above.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Apr 2004 10:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259076#M888266</guid>
      <dc:creator>Tony Walker</dc:creator>
      <dc:date>2004-04-26T10:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tty behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259077#M888267</link>
      <description>&lt;BR /&gt;login and type in:&lt;BR /&gt; &lt;BR /&gt;alias&lt;BR /&gt; &lt;BR /&gt;Is "ps" redefined (aliased) ??&lt;BR /&gt; &lt;BR /&gt;Do an "ls -l /dev/pts", do you have any, if so then how many?&lt;BR /&gt; &lt;BR /&gt;Also, try these:&lt;BR /&gt; &lt;BR /&gt;# grep telnet /etc/inetd.conf&lt;BR /&gt;telnet       stream tcp nowait root /usr/lbin/telnetd  telnetd &lt;BR /&gt;# ls -l /usr/lbin/telnetd &lt;BR /&gt;-r-xr--r--   1 bin        bin          94208 Sep 16  2002 /usr/lbin/telnetd&lt;BR /&gt;# what /usr/lbin/telnetd &lt;BR /&gt;/usr/lbin/telnetd:&lt;BR /&gt;         Copyright (c) 1983, 1986 Regents of the University of California.&lt;BR /&gt;         Patch ID: PHNE_24829&lt;BR /&gt;# &lt;BR /&gt; &lt;BR /&gt;Also, type in "env".&lt;BR /&gt;&lt;BR /&gt;Also, are you loggin in as "root" or a "common" user??&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 26 Apr 2004 13:43:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259077#M888267</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-04-26T13:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tty behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259078#M888268</link>
      <description>Your code is really unnecessary since HP-UX identifies terminals automatically with the program ttytype. Replace all your TERM= code with:&lt;BR /&gt; &lt;BR /&gt;eval $(ttytype -s)&lt;BR /&gt; &lt;BR /&gt;You will always have terminal problems when you set TERM= something since the script has no idea what is conected. All it takes is a user to change emulators or options on a terminal and the hardcoded TERM= will create problems. By using ttytype, the TERM value will be set automatically (as long as the terminal behaves like one of the several dozen models listed in /usr/lib/terminfo)</description>
      <pubDate>Mon, 26 Apr 2004 19:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259078#M888268</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-04-26T19:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Strange tty behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259079#M888269</link>
      <description>Thanks guys.&lt;BR /&gt;&lt;BR /&gt;Alas I've come in this morning and the problem no longer exists:| Bill, I'll look into implementing the use of ttytype instead - looks like its about time some of our machines got a rewrite!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Tue, 27 Apr 2004 03:50:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-tty-behaviour/m-p/3259079#M888269</guid>
      <dc:creator>Tony Walker</dc:creator>
      <dc:date>2004-04-27T03:50:17Z</dc:date>
    </item>
  </channel>
</rss>

