<?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: Alias not working sometimes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103233#M807641</link>
    <description>Bill,&lt;BR /&gt; &lt;BR /&gt;Can your put a line in /etc/profile to reference $USER/.profile?&lt;BR /&gt; &lt;BR /&gt;Seems like that would work in the of non-telnet logins.</description>
    <pubDate>Mon, 27 Oct 2003 14:29:31 GMT</pubDate>
    <dc:creator>Todd McDaniel_1</dc:creator>
    <dc:date>2003-10-27T14:29:31Z</dc:date>
    <item>
      <title>Alias not working sometimes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103228#M807636</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I use aliases to make my work easier. Sometimes I find that the aliases do not work. Any idea why this happens? Thanks for all responses.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suren Selva</description>
      <pubDate>Mon, 27 Oct 2003 11:15:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103228#M807636</guid>
      <dc:creator>Suren Selva_1</dc:creator>
      <dc:date>2003-10-27T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alias not working sometimes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103229#M807637</link>
      <description>What is your alias setup? and have you aliased commands that are current unix commands... &lt;BR /&gt;&lt;BR /&gt;Post your alias so we can help diagnose it.</description>
      <pubDate>Mon, 27 Oct 2003 11:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103229#M807637</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-27T11:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alias not working sometimes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103230#M807638</link>
      <description>Suren,&lt;BR /&gt;  When you are saying sometimes, can you pinpoint those occasions.  Is it during a plain tty session or a CDE session?&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Mon, 27 Oct 2003 11:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103230#M807638</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-10-27T11:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alias not working sometimes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103231#M807639</link>
      <description>This probelm is mostly environmental.&lt;BR /&gt;&lt;BR /&gt;What I mean is that under certain circumstances the aliases are probably not getting loaded.&lt;BR /&gt;&lt;BR /&gt;The places to look include /etc/profile and .profile for the user.&lt;BR /&gt;&lt;BR /&gt;When it works try this:&lt;BR /&gt;env &amp;gt; /tmp/good.txt&lt;BR /&gt;&lt;BR /&gt;When it doesn't&lt;BR /&gt;env &amp;gt; /tmp/bad.txt&lt;BR /&gt;&lt;BR /&gt;then diff /tmp/good.txt /tmp/bad.txt&lt;BR /&gt;&lt;BR /&gt;That will identify the issue and let you solve it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 27 Oct 2003 11:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103231#M807639</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-27T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alias not working sometimes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103232#M807640</link>
      <description>Almost always, this is a profile issue and is associated with Xwindows where the default is to totally ignore standard Unix login profiles. You can verify this by putting and echo "running .profile" at the beginning of your $HOME/.profile and if you don't see the message, .profile was never run.&lt;BR /&gt; &lt;BR /&gt;A 'normal' telnet connection will run .profile, but remsh will not, nor will an VUE or CDE login using one of the desktop terminal icons. You'll need to add a *loginShell:true to your $HOME/.Xdefaults file to get a true login.</description>
      <pubDate>Mon, 27 Oct 2003 12:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103232#M807640</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-10-27T12:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alias not working sometimes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103233#M807641</link>
      <description>Bill,&lt;BR /&gt; &lt;BR /&gt;Can your put a line in /etc/profile to reference $USER/.profile?&lt;BR /&gt; &lt;BR /&gt;Seems like that would work in the of non-telnet logins.</description>
      <pubDate>Mon, 27 Oct 2003 14:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103233#M807641</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-27T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Alias not working sometimes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103234#M807642</link>
      <description>This happens during a tty session. It has not happened since the last time on Friday. The commmand I am using is&lt;BR /&gt;&lt;BR /&gt;lp='lp -oc -dprinter'&lt;BR /&gt;&lt;BR /&gt;-Suren</description>
      <pubDate>Mon, 27 Oct 2003 16:14:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103234#M807642</guid>
      <dc:creator>Suren Selva_1</dc:creator>
      <dc:date>2003-10-27T16:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Alias not working sometimes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103235#M807643</link>
      <description>Suren -&lt;BR /&gt;In a basic HP-UX class, we were advised to place the alias in our corresponding shell .xxxrc file.&lt;BR /&gt;i.e. .kshrc or .cshrc.&lt;BR /&gt;Having done that, I have not seen the problem in our environment.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Mon, 27 Oct 2003 18:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103235#M807643</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-10-27T18:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alias not working sometimes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103236#M807644</link>
      <description>The problem is that /etc/profile is NEVER executed by default in the CDE and VUE environments. Here is ho9w a 'normal' telnet login works:&lt;BR /&gt;&lt;BR /&gt;- telnet from the client contacts telnetd in HP-UX&lt;BR /&gt;- login/password are requested and one authenticated, the user shell is started as a login process. For Bourne, Korn, POSIX (and even Bash), /etc/profile is then sourced&lt;BR /&gt;- Once /etc/profile is sourced, the user's local profile is run. Now it gets complicated: Bourne, Korn and POSIX shells will read .profile,  Bash will read .bash_profile, .bash_login, and ~/.profile in that order if they are readable.&lt;BR /&gt; &lt;BR /&gt;SO it is not necessary to add .profile to /etc/profile at all. The problem occurs with the obtuse defaults for CDE and VUE. In this case, users often use the desktop icons for terminals (xterm, dtterm and hpterm) and unfortunately, the default is to start the window and run the shell without the 'loginShell' option. So neither /etc/profile nor .profile will lbe run at all. To fix this bizarre (by Unix standards) behavior, you need to tell the terminal emulators to perform a 'normal' login. On the machine acting as a CDE or VUE server, run this command:&lt;BR /&gt; &lt;BR /&gt;echo "*loginShell: true" &amp;gt;&amp;gt; $HOME/.Xdefaults&lt;BR /&gt; &lt;BR /&gt;and now each terminal will actually run /etc/profile then .profile. Verify this with simple echo statements in both files.</description>
      <pubDate>Mon, 27 Oct 2003 20:54:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias-not-working-sometimes/m-p/3103236#M807644</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-10-27T20:54:57Z</dc:date>
    </item>
  </channel>
</rss>

