<?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: .profile help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247813#M174845</link>
    <description>using Reflection for Digital and Unix.&lt;BR /&gt;&lt;BR /&gt;The "^H" worked!&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
    <pubDate>Wed, 14 Apr 2004 09:33:45 GMT</pubDate>
    <dc:creator>SM_3</dc:creator>
    <dc:date>2004-04-14T09:33:45Z</dc:date>
    <item>
      <title>.profile help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247810#M174842</link>
      <description>I have &lt;BR /&gt;stty erase ^H&lt;BR /&gt;in .profile&lt;BR /&gt;but when I log in I cannot use backspace and have to set stty erase manually.&lt;BR /&gt;&lt;BR /&gt;How can I get the .profile to work automatically?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2004 09:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247810#M174842</guid>
      <dc:creator>SM_3</dc:creator>
      <dc:date>2004-04-14T09:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: .profile help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247811#M174843</link>
      <description>First, if this is a CDE login, make certain that DTSOURCEPROFILE=true is set in .dtprofile. &lt;BR /&gt;&lt;BR /&gt;Next check .profile to see if any if conditions might cause this portion of the code not to be executed.&lt;BR /&gt;&lt;BR /&gt;Also, you should eclose the stty arguments in quotes:&lt;BR /&gt;&lt;BR /&gt;e.g. stty erase "^H"&lt;BR /&gt;&lt;BR /&gt;Finally, don't overlook the obvious. You stty may be overridden by later stty commands especially if your .profile sources other scripts.&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2004 09:28:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247811#M174843</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-04-14T09:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: .profile help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247812#M174844</link>
      <description>We have this code in /etc/profile for all users, which should work the same in .profile&lt;BR /&gt;&lt;BR /&gt;   # set erase to ^H, if ERASE is not set&lt;BR /&gt; if [ "$ERASE" = "" ]&lt;BR /&gt; then&lt;BR /&gt;  ERASE="^H"&lt;BR /&gt;  export ERASE&lt;BR /&gt; fi&lt;BR /&gt; stty erase $ERASE&lt;BR /&gt;&lt;BR /&gt;I'd run through /etc/profile and .profile and see if the settings are overwritten.&lt;BR /&gt;&lt;BR /&gt;Further, your terminal software can sometimes be incompatible with this setting, and some detail on this would be helpful. What client are we using?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 14 Apr 2004 09:29:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247812#M174844</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-04-14T09:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: .profile help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247813#M174845</link>
      <description>using Reflection for Digital and Unix.&lt;BR /&gt;&lt;BR /&gt;The "^H" worked!&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Apr 2004 09:33:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247813#M174845</guid>
      <dc:creator>SM_3</dc:creator>
      <dc:date>2004-04-14T09:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: .profile help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247814#M174846</link>
      <description>There are several problems are going on. Reflection for DEC/Unix has an annoying default backspace setting (well OK, not annoying to VMS users, but the rest of us really think backspace should = backspace). Backspace = DEL is the default setting. That's why typing CTRL-H on your keyboard works OK but the backspace key shows ^? when you try to backspace. In your Reflection menu, select:&lt;BR /&gt; &lt;BR /&gt;Setup -&amp;gt; Terminal -&amp;gt; Keyboard&lt;BR /&gt; &lt;BR /&gt;and change "VT Backspace sends" from Delete to Backspace. That takes care of your emulator.&lt;BR /&gt; &lt;BR /&gt;Now login (the actual character-mode prompt, not an Xwindow CDE or VUE login window) defaults to the (very) old standard of backspace = # and delete-line = @. These were very common character codes in the days when terminals had paper and ink (ie, a Teletype machine or similar). Can't really backspace on a paper terminal to erase characters...&lt;BR /&gt;  &lt;BR /&gt;So to fix this problem with the login program, HP-UX 11.0 and higher has added a new device file: /dev/ttyconf which is used to establish new defaults for stty settings prior to login and /etc/profile. You can do this:&lt;BR /&gt; &lt;BR /&gt;/sbin/stty erase "^H"&lt;BR /&gt; &lt;BR /&gt;or better yet:&lt;BR /&gt; &lt;BR /&gt;/sbin/stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff&lt;BR /&gt; &lt;BR /&gt;which sets all the important values. Once issued, this command changes the defaults for all new logins and 'sticks' between reboots. Note that the console default will not take effect until a reboot has occcurred. However, I have noticed that it doesn't always 'stick' (may be a patch issue) so I run it in cron around 2am in the morning.</description>
      <pubDate>Wed, 14 Apr 2004 12:42:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247814#M174846</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-04-14T12:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: .profile help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247815#M174847</link>
      <description>A. Clay Stephenson wrote-&lt;BR /&gt;&lt;BR /&gt;| First, if this is a CDE login, make certain&lt;BR /&gt;| that DTSOURCEPROFILE=true is set in .dtprofile.&lt;BR /&gt;&lt;BR /&gt;But a CDE login does not source ~/.profile for each login when DTSOURCEPROFILE=true.  That flag says to source ~/.profile once when logging in to CDE.  It is important to avoid tty operations in .profile at that time.  Commands like stty and tset need to be protected from running by a test like-&lt;BR /&gt;if [ ! "$DT" ]; then&lt;BR /&gt;  stty erase "^H"&lt;BR /&gt;fi&lt;BR /&gt;Otherwise a failing .profile command could prevent a CDE login from working.&lt;BR /&gt;&lt;BR /&gt;CDE terminal emulators normally get their initial tty settings from an X resource.  The /usr/dt/config/C/sys.resources file contains a default setting of "sys.resources:*ttyModes:  erase ^H intr ^C kill ^U start ^Q stop ^S swtch ^@ susp ^Z" which the terminal emulators such as dtterm use.&lt;BR /&gt;&lt;BR /&gt;It is also possible to set resources or options to cause terminal emulators to start a login shell that will source ~/.profile at startup.&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Apr 2004 15:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-help/m-p/3247815#M174847</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-04-19T15:14:33Z</dc:date>
    </item>
  </channel>
</rss>

