<?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: problem with kshrc in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911496#M45848</link>
    <description>'pdksh' (which is the default KSH package on a RedHat box) won't call a '~/.kshrc' on it's own.&lt;BR /&gt;&lt;BR /&gt;In the user's profile (or possibly the '/etc/profile'), a section that says something like this is required:&lt;BR /&gt;&lt;BR /&gt;if [ "$SHELL" = "/bin/ksh" ]&lt;BR /&gt;then&lt;BR /&gt;[ -f "~/.kshrc" ] &amp;amp;&amp;amp; . ~/.kshrc&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;This will execute a '~/.kshrc' if it exists, and the shell is 'ksh'.  Using the '.' method of execution means that any environment changes which occur in the '.kshrc' is within the shell's scope, and will stay there.</description>
    <pubDate>Mon, 11 Jul 2005 02:55:05 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2005-07-11T02:55:05Z</dc:date>
    <item>
      <title>problem with kshrc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911491#M45843</link>
      <description>Hi ALL&lt;BR /&gt;&lt;BR /&gt;Iam facing a problem with .kshrc&lt;BR /&gt;&lt;BR /&gt;I  have  a  NIS setup here  and there are &lt;BR /&gt;hpux and linux sytems in the setup &lt;BR /&gt;&lt;BR /&gt;The problem is the the ailases I have mentioned in .kshrc file will be executed in hpux but not in redhat linux ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anybody throw some light init this &lt;BR /&gt;This .kshrc file is in the /home/.profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Binu</description>
      <pubDate>Mon, 11 Jul 2005 00:48:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911491#M45843</guid>
      <dc:creator>Binu_5</dc:creator>
      <dc:date>2005-07-11T00:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem with kshrc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911492#M45844</link>
      <description>Show us the how the '.profile' calls the '.kshrc' please.&lt;BR /&gt;&lt;BR /&gt;And the dumb question, the user you are logging in as has '/bin/ksh' as it's shell, yes?</description>
      <pubDate>Mon, 11 Jul 2005 01:05:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911492#M45844</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-11T01:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with kshrc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911493#M45845</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;The login looks like this &lt;BR /&gt;&lt;BR /&gt;maheshag:u2QnKE1LLp7k2:392:20:Mahesha Guttahali(Latha's team member):/home/maheshag:/sbin/sh&lt;BR /&gt;&lt;BR /&gt;in Hpux &lt;BR /&gt;r-xr-xr-x   1 bin        bin         401408 Apr 14  2002 sh&lt;BR /&gt;ps give the out put &lt;BR /&gt;&lt;BR /&gt;; ps&lt;BR /&gt;   PID TTY       TIME COMMAND&lt;BR /&gt; 14318 pts/23    0:00 sh&lt;BR /&gt; 14348 pts/23    0:00 ps&lt;BR /&gt; 14094 pts/23    0:00 ksh&lt;BR /&gt;&lt;BR /&gt;in Linux&lt;BR /&gt;&lt;BR /&gt;lrwxrwxrwx    1 root     root           12 Feb 17 11:00 sh -&amp;gt; /usr/bin/ksh &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Binu&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 02:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911493#M45845</guid>
      <dc:creator>Binu_5</dc:creator>
      <dc:date>2005-07-11T02:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: problem with kshrc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911494#M45846</link>
      <description>Oh boy..  Bad..&lt;BR /&gt;&lt;BR /&gt;Lets start with this.&lt;BR /&gt;&lt;BR /&gt;NEVER LINK 'sh' TO ANYTHING OTHER THAN 'bash' ON A Linux BOX!&lt;BR /&gt;&lt;BR /&gt;If you want a user to use 'ksh' as their login shell, then make the user's shell 'ksh'!&lt;BR /&gt;&lt;BR /&gt;Quite a number of scripts written on a Linux box are written expecting bash functionality!  'ksh' doesn't work in the same manner as 'bash', so some unexpected things WILL happen.&lt;BR /&gt;&lt;BR /&gt;Now, all that said.  On a RH box by default, a '~/.kshrc' won't be called.&lt;BR /&gt;&lt;BR /&gt;So this goes back to my previous question, how are you calling your '.kshrc' from your '.profile'?</description>
      <pubDate>Mon, 11 Jul 2005 02:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911494#M45846</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-11T02:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem with kshrc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911495#M45847</link>
      <description>Hi Stuart &lt;BR /&gt;&lt;BR /&gt;Though my shell is sh  ..I dont have any clue from where this .kshrc is been taken &lt;BR /&gt;It was a working setup in Hp ux and I never bothered ..&lt;BR /&gt;I have checked my .profile and nothing much &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can you pleae let me know where to check&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Binu</description>
      <pubDate>Mon, 11 Jul 2005 02:49:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911495#M45847</guid>
      <dc:creator>Binu_5</dc:creator>
      <dc:date>2005-07-11T02:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem with kshrc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911496#M45848</link>
      <description>'pdksh' (which is the default KSH package on a RedHat box) won't call a '~/.kshrc' on it's own.&lt;BR /&gt;&lt;BR /&gt;In the user's profile (or possibly the '/etc/profile'), a section that says something like this is required:&lt;BR /&gt;&lt;BR /&gt;if [ "$SHELL" = "/bin/ksh" ]&lt;BR /&gt;then&lt;BR /&gt;[ -f "~/.kshrc" ] &amp;amp;&amp;amp; . ~/.kshrc&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;This will execute a '~/.kshrc' if it exists, and the shell is 'ksh'.  Using the '.' method of execution means that any environment changes which occur in the '.kshrc' is within the shell's scope, and will stay there.</description>
      <pubDate>Mon, 11 Jul 2005 02:55:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911496#M45848</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-11T02:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with kshrc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911497#M45849</link>
      <description>Hi Stuart&lt;BR /&gt;&lt;BR /&gt;I have copied .kshrc  to bashrc and set the &lt;BR /&gt;enviromnet in the .profile and it seems to be working &lt;BR /&gt;&lt;BR /&gt;export ENV=$HOME/.bashrc&lt;BR /&gt;&lt;BR /&gt;Thanks  for  making me think&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Binu</description>
      <pubDate>Mon, 11 Jul 2005 03:09:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911497#M45849</guid>
      <dc:creator>Binu_5</dc:creator>
      <dc:date>2005-07-11T03:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with kshrc</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911498#M45850</link>
      <description>Hi Stuart&lt;BR /&gt;&lt;BR /&gt;I have copied .kshrc to bashrc and set the &lt;BR /&gt;enviromnet in the .profile and it seems to be working &lt;BR /&gt;&lt;BR /&gt;export ENV=$HOME/.bashrc&lt;BR /&gt;&lt;BR /&gt;Thanks for making me think&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Binu</description>
      <pubDate>Mon, 11 Jul 2005 21:55:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-kshrc/m-p/4911498#M45850</guid>
      <dc:creator>Binu_5</dc:creator>
      <dc:date>2005-07-11T21:55:10Z</dc:date>
    </item>
  </channel>
</rss>

