<?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: The shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818495#M86029</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As others say, verify the shell specified for you in /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;If if is csh, check to see if you have something in .cshrc or .login in your home directory that switches you to a different shell.  It could be something like:&lt;BR /&gt;exec /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
    <pubDate>Thu, 03 Oct 2002 18:53:29 GMT</pubDate>
    <dc:creator>Darrell Allen</dc:creator>
    <dc:date>2002-10-03T18:53:29Z</dc:date>
    <item>
      <title>The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818492#M86026</link>
      <description>Please forgive my ignorance, but I'm getting a strange problem. &lt;BR /&gt;&lt;BR /&gt;When I do echo $SHELL ( or do a ps ) I see a csh, but still the environments set in the '.cshrc' don't work. Then, when I do csh, I can see my environment set ( probably the .cshrc isn't read when I first login, and is read only when I do a csh )&lt;BR /&gt;&lt;BR /&gt;What is going wrong here ?</description>
      <pubDate>Thu, 03 Oct 2002 18:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818492#M86026</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-03T18:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818493#M86027</link>
      <description>Hi Namit,&lt;BR /&gt;&lt;BR /&gt;Few things to check:&lt;BR /&gt;&lt;BR /&gt;1) Make sure that csh is your defined shell in the passwd file &amp;amp; that the path to csh is correct - /usr/bin/csh&lt;BR /&gt;&lt;BR /&gt;2) Check permissions on your home dir - should be owned by you &amp;amp; the group should be your primary group&lt;BR /&gt;&lt;BR /&gt;3) Check the ownership &amp;amp; perms on the .cshrc file itself - should be 444&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 03 Oct 2002 18:38:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818493#M86027</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-10-03T18:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818494#M86028</link>
      <description>take a look at the password file and see what shell is set for that user... it will be the last item on the line for this user.&lt;BR /&gt;&lt;BR /&gt;is it /usr/bin/csh?  or another shell&lt;BR /&gt;&lt;BR /&gt;also check /etc/profile, &lt;HOME_DIR&gt;/.login and .profile and look for any forced entries resetting the SHELL.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the .login and .profile is clear and /etc/passwd has /usr/bin/csh, you should be ok.  Update the passwd file if necessary to show /usr/bin/csh.&lt;BR /&gt;&lt;BR /&gt;Ted&lt;/HOME_DIR&gt;</description>
      <pubDate>Thu, 03 Oct 2002 18:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818494#M86028</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-03T18:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818495#M86029</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As others say, verify the shell specified for you in /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;If if is csh, check to see if you have something in .cshrc or .login in your home directory that switches you to a different shell.  It could be something like:&lt;BR /&gt;exec /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 03 Oct 2002 18:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818495#M86029</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-03T18:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818496#M86030</link>
      <description>Hi&lt;BR /&gt;Are you running CDE. If so, try with uncommenting the line:&lt;BR /&gt;&lt;BR /&gt;#DTSOURCEPROFILE=true&lt;BR /&gt;in the file &amp;lt;$HOME&amp;gt;/.dtprofile</description>
      <pubDate>Thu, 03 Oct 2002 19:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818496#M86030</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-10-03T19:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818497#M86031</link>
      <description>Thanks for the help guys, but I've checked the .login and .cshrc files, and there's nothing about SHELL. Even the passwd file is fine.&lt;BR /&gt;&lt;BR /&gt;I changed the group to primary, that didn't help.&lt;BR /&gt;&lt;BR /&gt;What I want to know is, if I see csh when I do a ps, doesn't that always mean that I am running a cshell ? SHELL might have been changes, but ps should tell me the current shell running, right ?</description>
      <pubDate>Thu, 03 Oct 2002 19:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818497#M86031</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-03T19:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818498#M86032</link>
      <description>running ps will show the processes associated with the current terminal, so csh would indicate that the terminal you are on is running a csh.  &lt;BR /&gt;&lt;BR /&gt;Did you note one of the later entries?  Are you logging in via CDE?  Or xterm/telnet?</description>
      <pubDate>Thu, 03 Oct 2002 19:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818498#M86032</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-03T19:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818499#M86033</link>
      <description>Yes, it should show you the shell you are running but it doesn't necessarily tell you the path of the shell (you may have more than one copy of a shell).&lt;BR /&gt;&lt;BR /&gt;How are you logging into the system? Depending upon how you are logging into the system, .cshrc may or may not be executed. For example, logging in through CDE will not execute .cshrc unless you change .dtprofile.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Thu, 03 Oct 2002 19:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818499#M86033</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-10-03T19:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818500#M86034</link>
      <description>also.. instead of looking for SHELL in the target files mentioned.. just check for csh&lt;BR /&gt;&lt;BR /&gt;curious to see if maybe /usr/bin/csh... possibly with the -f option may be tucked in their somewhere...&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Thu, 03 Oct 2002 19:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818500#M86034</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-03T19:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818501#M86035</link>
      <description>Yeah, in CDE, I've to telnet to that machine. And in fact, I don't see this problem on my own machine. &lt;BR /&gt;&lt;BR /&gt;Can this solve the issue ?&lt;BR /&gt;&lt;BR /&gt;BTW I did try uncommenting, but that didn't help, and $HOME/.dt/startlog also doesn't report any problem ( as suggested in .dtprofile )</description>
      <pubDate>Thu, 03 Oct 2002 19:51:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818501#M86035</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-03T19:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818502#M86036</link>
      <description>Yes, ps will show the shell you are running.  Consider the following:&lt;BR /&gt;&lt;BR /&gt;$ echo $SHELL&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;$ csh&lt;BR /&gt;% echo $SHELL&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;% ps -f&lt;BR /&gt;    UID   PID  PPID  C    STIME TTY       TIME COMMAND&lt;BR /&gt;darrell 15130   219  0 16:49:07 pts/3     0:00 csh&lt;BR /&gt;darrell   219   213  0  Sep 27  pts/3     0:00 -sh&lt;BR /&gt;darrell 15131 15130  5 16:49:11 pts/3     0:00 ps -f&lt;BR /&gt;% echo $$&lt;BR /&gt;15130&lt;BR /&gt;%&lt;BR /&gt;&lt;BR /&gt;My login shell is a posix shell.  After echo $SHELL, I switched to csh.  Notice $SHELL did not change.  "ps -f" shows both csh and sh but you can see that sh is the parent process for the csh.&lt;BR /&gt;&lt;BR /&gt;So to answer your question, yes, if you see csh you are running a cshell.  It may not be your current shell though.  To see which is your current shell, "echo $$" and match it to the ps output.  From above, you see the current shell is 15130, the csh process.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 03 Oct 2002 19:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818502#M86036</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-03T19:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818503#M86037</link>
      <description>So Allen, On echo $$ I get 2852 as my PID, which is for csh</description>
      <pubDate>Thu, 03 Oct 2002 19:56:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818503#M86037</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-03T19:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818504#M86038</link>
      <description>And Martin,&lt;BR /&gt;&lt;BR /&gt;I do a telnet or rlogin from my dtterm or xterm ( since this is not my primary machine ). What do I need to do to see if .cshrc is run or not ?</description>
      <pubDate>Thu, 03 Oct 2002 19:58:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818504#M86038</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-03T19:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818505#M86039</link>
      <description>how about inserting a line to maybe read the /etc/motd... insert something that will make it obvious the .cshrc is being parsed... echo a string of some sort...</description>
      <pubDate>Thu, 03 Oct 2002 20:00:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818505#M86039</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-03T20:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818506#M86040</link>
      <description>Well, it appears your current shell is csh.&lt;BR /&gt;&lt;BR /&gt;Did you try Leif's suggestion?  It was to uncomment the line:&lt;BR /&gt;&lt;BR /&gt;#DTSOURCEPROFILE=true &lt;BR /&gt;in the file &amp;lt;$HOME&amp;gt;/.dtprofile &lt;BR /&gt;&lt;BR /&gt;I don't remember if you need to close your CDE session and restart it.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 03 Oct 2002 20:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818506#M86040</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-03T20:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818507#M86041</link>
      <description>I mean, I know .cshrc is not run the first time ( unless I do a csh ) since if I echo the PATH, this doesn't include the ones I set in .cshrc, only after a csh do I get to see those paths.</description>
      <pubDate>Thu, 03 Oct 2002 20:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818507#M86041</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-03T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818508#M86042</link>
      <description>I think I mis-read your comments above.  You run CDE, open a telnet session to a remote system where you experience this problem.  If so, I don't believe DTSOURCPROFILE is going to help.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 03 Oct 2002 20:06:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818508#M86042</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-03T20:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818509#M86043</link>
      <description>To see if .cshrc is being executed, simply add a line to it that says "echo This is .cshrc".&lt;BR /&gt;&lt;BR /&gt;You can also put a line in .login to see if it's being executed.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 03 Oct 2002 20:07:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818509#M86043</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-03T20:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818510#M86044</link>
      <description>inondation de l'information&lt;BR /&gt;( Flood of information )&lt;BR /&gt;&lt;BR /&gt;... for my little brain today :-)&lt;BR /&gt;&lt;BR /&gt;Anyway, Allen I restarted CDE as well, but in vain :-(</description>
      <pubDate>Thu, 03 Oct 2002 20:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818510#M86044</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-03T20:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: The shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818511#M86045</link>
      <description>Now you guys would solve this problem I guess. This must be some silly problem now.&lt;BR /&gt;&lt;BR /&gt;I found that actually .cshrc is running the first time also. If I do echo for other variables, or do echo "Hello World" in .cshrc, that works. The problem is only with PATH.&lt;BR /&gt;&lt;BR /&gt;# ClearCase paths&lt;BR /&gt;setenv PATH /usr/atria/bin:$PATH&lt;BR /&gt;&lt;BR /&gt;setenv CLEARCASE_BLD_UMASK 2&lt;BR /&gt;&lt;BR /&gt;echo PATH doesn't show me the new path, but echo CLEARCASE... does show me 2 !</description>
      <pubDate>Thu, 03 Oct 2002 20:16:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/the-shell/m-p/2818511#M86045</guid>
      <dc:creator>Namit</dc:creator>
      <dc:date>2002-10-03T20:16:56Z</dc:date>
    </item>
  </channel>
</rss>

