<?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: Korn shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070984#M140652</link>
    <description>Are you trying to change the prompt for everyone?  For an individual user, just change their ~/.profile.&lt;BR /&gt;&lt;BR /&gt;If you're running CDE, this is what we do to force the sourcing of profiles:  in ~/.dtprofile:&lt;BR /&gt;DTSOURCEPROFILE=true&lt;BR /&gt;  . /etc/profile;&lt;BR /&gt;  . $HOME/.profile;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Sep 2003 10:02:52 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2003-09-15T10:02:52Z</dc:date>
    <item>
      <title>Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070983#M140651</link>
      <description>The profile in /etc don??t work ?&lt;BR /&gt;I wanted to change the korn shell prompt but nothing happens when i changed the variable ps1 in the file /etc/profile !</description>
      <pubDate>Mon, 15 Sep 2003 09:57:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070983#M140651</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-09-15T09:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070984#M140652</link>
      <description>Are you trying to change the prompt for everyone?  For an individual user, just change their ~/.profile.&lt;BR /&gt;&lt;BR /&gt;If you're running CDE, this is what we do to force the sourcing of profiles:  in ~/.dtprofile:&lt;BR /&gt;DTSOURCEPROFILE=true&lt;BR /&gt;  . /etc/profile;&lt;BR /&gt;  . $HOME/.profile;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 10:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070984#M140652</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-09-15T10:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070985#M140653</link>
      <description>The execution sequence is /etc/profile and then .profile of the user.&lt;BR /&gt;&lt;BR /&gt;Check permissions on /etc/profile. ownership should be bin:bin with read access to all.&lt;BR /&gt;&lt;BR /&gt;Put PS1='You stuff Here' and it will work.&lt;BR /&gt;&lt;BR /&gt;/etc/profile is for ksh, sh&lt;BR /&gt;for csh /etc/csh.login is executed.</description>
      <pubDate>Mon, 15 Sep 2003 10:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070985#M140653</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-09-15T10:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070986#M140654</link>
      <description>works when I change it in my /etc/profile, eg;&lt;BR /&gt;&lt;BR /&gt;PS1='boo&amp;gt; '&lt;BR /&gt;&lt;BR /&gt;But it may be overridden by a users .profile in their home directory as /etc/profile is run before $HOME/.profile - so normally PS1 is set in $HOME/.profile&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 10:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070986#M140654</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-09-15T10:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070987#M140655</link>
      <description>The profile in /etc certainly should work!&lt;BR /&gt;&lt;BR /&gt;Are you should you are changing "PS1" and not "ps1".&lt;BR /&gt;&lt;BR /&gt;Also, you need to make sure you export it.  As an example, try&lt;BR /&gt;&lt;BR /&gt;export PS1="[ $(whoami)@$(hostname) \$PWD ] \$SIGN "</description>
      <pubDate>Mon, 15 Sep 2003 10:04:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070987#M140655</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-15T10:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070988#M140656</link>
      <description>Rene,&lt;BR /&gt;  Its a normal practice to set PS1 in users profile.&lt;BR /&gt;  If you are connecting through an X-emulator uncomment DTSOURCEPROFILE at the end of the .dtprofile.&lt;BR /&gt;&lt;BR /&gt;  can you post your PS1?&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 10:05:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070988#M140656</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-09-15T10:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070989#M140657</link>
      <description>1) Did you execute the .profile by logging out and loggin in again.&lt;BR /&gt;2) Try giving . ./.profile in the /etc dir&lt;BR /&gt;   cd /etc&lt;BR /&gt;   dot space dot/dot profie&lt;BR /&gt;are you seeing any error message there?</description>
      <pubDate>Mon, 15 Sep 2003 10:05:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070989#M140657</guid>
      <dc:creator>Bhuvaneswari Selvaraj</dc:creator>
      <dc:date>2003-09-15T10:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070990#M140658</link>
      <description># Shell Prompt:&lt;BR /&gt;&lt;BR /&gt;  HOST=$(uname -n)&lt;BR /&gt;  export HOST&lt;BR /&gt;  PS1='$HOST:$PWD $ '&lt;BR /&gt;&lt;BR /&gt;These are the entries in /etc/profile !&lt;BR /&gt;I want to change the prompt for everyone, so I added it in /etc/profile !&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 10:08:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070990#M140658</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-09-15T10:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070991#M140659</link>
      <description>You haven' exported PS1.  You need to export that too.</description>
      <pubDate>Mon, 15 Sep 2003 10:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070991#M140659</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-15T10:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070992#M140660</link>
      <description>that??s it !!!</description>
      <pubDate>Mon, 15 Sep 2003 10:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070992#M140660</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-09-15T10:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070993#M140661</link>
      <description>Rene,&lt;BR /&gt;  It should work.  It works for me.  Mark has got it.  Did you export PS1?&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 10:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070993#M140661</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-09-15T10:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070994#M140662</link>
      <description>that??s it !!!&lt;BR /&gt;Error myself !</description>
      <pubDate>Mon, 15 Sep 2003 10:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070994#M140662</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-09-15T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070995#M140663</link>
      <description>too fast: it did??n work !&lt;BR /&gt;I added the export ps1, but nothing happened !&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 10:19:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070995#M140663</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-09-15T10:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070996#M140664</link>
      <description>Could you confirm you are doing&lt;BR /&gt;&lt;BR /&gt;export PS1&lt;BR /&gt;&lt;BR /&gt;not&lt;BR /&gt;&lt;BR /&gt;export ps1</description>
      <pubDate>Mon, 15 Sep 2003 10:21:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070996#M140664</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-15T10:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070997#M140665</link>
      <description>i had entered . ./profile and then the startup script (etc/profile) works !&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 10:22:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070997#M140665</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-09-15T10:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070998#M140666</link>
      <description>Entering . ./profile shouldn't make any difference unless you have a really weird .profile.&lt;BR /&gt;&lt;BR /&gt;Could you just confirm that with your exported PS1 in /etc/profile and after logging out and logging in again, it still doesn't work</description>
      <pubDate>Mon, 15 Sep 2003 10:31:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070998#M140666</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-15T10:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070999#M140667</link>
      <description>the script is not invoked at shell startup !&lt;BR /&gt;When I execute the script /etc/profile manually the last line entry is "logout" ?&lt;BR /&gt;I don??t know why ?</description>
      <pubDate>Mon, 15 Sep 2003 11:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3070999#M140667</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-09-15T11:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3071000#M140668</link>
      <description>the script is not invoked at shell startup !&lt;BR /&gt;When I execute the script /etc/profile manually the last line entry is "logout" ?&lt;BR /&gt;I don??t know why ?&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2003 11:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3071000#M140668</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-09-15T11:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3071001#M140669</link>
      <description>If you are using X to log in, then /etc/profile will not be executed and you should see the related answers above.&lt;BR /&gt;&lt;BR /&gt;If you do "su" then it also will not be run (you need to do su -).  Having "logout" as the last line of /etc/profile is weird but not completely idiotic if, for example, you want all your users to run a specific application and then logout when they have finished (you'd need to stop root having the same problem though of course).&lt;BR /&gt;&lt;BR /&gt;I think you are going to have to explain a little more about how you are logging in and perhaps post your &lt;BR /&gt;/etc/profile and .profile files.</description>
      <pubDate>Mon, 15 Sep 2003 12:02:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3071001#M140669</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-15T12:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Korn shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3071002#M140670</link>
      <description>I take exceed to log in to the X window system ! Then I start the shell with the X window toolbar (terminal).</description>
      <pubDate>Mon, 15 Sep 2003 12:11:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/korn-shell/m-p/3071002#M140670</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-09-15T12:11:21Z</dc:date>
    </item>
  </channel>
</rss>

