<?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: Display dinamically the ORACLE_SID variable value in PS1 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/display-dinamically-the-oracle-sid-variable-value-in-ps1/m-p/5280814#M641425</link>
    <description>The trick is to use single quotes:&lt;BR /&gt;PS1='$ORACLE_SID:$PWD&amp;gt; '</description>
    <pubDate>Fri, 29 Apr 2011 06:35:58 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-04-29T06:35:58Z</dc:date>
    <item>
      <title>Display dinamically the ORACLE_SID variable value in PS1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-dinamically-the-oracle-sid-variable-value-in-ps1/m-p/5280813#M641424</link>
      <description>&lt;!--!*#--&gt;I'm triyng to dysplay the $ORACLE_SID value on the prompt.&lt;BR /&gt;After setting the ORACLE_SID by command line I wolud like to see it in the prompt.&lt;BR /&gt;I tried to change it in the PS1 variable in .profile file but my attempt was unsuccessfully:&lt;BR /&gt;PS1="$(echo $ORACLE_SID):\$PWD&amp;gt; &lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;ORADB1:\&amp;gt; export ORACLE_SID=ORADB2&lt;BR /&gt;ORADB2:\&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Have you got any suggest?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;BG&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2011 06:29:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-dinamically-the-oracle-sid-variable-value-in-ps1/m-p/5280813#M641424</guid>
      <dc:creator>gaudiobe</dc:creator>
      <dc:date>2011-04-29T06:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Display dinamically the ORACLE_SID variable value in PS1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-dinamically-the-oracle-sid-variable-value-in-ps1/m-p/5280814#M641425</link>
      <description>The trick is to use single quotes:&lt;BR /&gt;PS1='$ORACLE_SID:$PWD&amp;gt; '</description>
      <pubDate>Fri, 29 Apr 2011 06:35:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-dinamically-the-oracle-sid-variable-value-in-ps1/m-p/5280814#M641425</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-04-29T06:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display dinamically the ORACLE_SID variable value in PS1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-dinamically-the-oracle-sid-variable-value-in-ps1/m-p/5280815#M641426</link>
      <description>Try this in ksh or sh-posix:&lt;BR /&gt;&lt;BR /&gt;export PS1='${ORACLE_SID:-NoSID},${LOGNAME}[${PWD##*/}]$ '&lt;BR /&gt;&lt;BR /&gt;It should include SID,User, and short PWD in your prompt.  Also, if SID is ever unset/null then your prompt will tell you.</description>
      <pubDate>Mon, 06 Jun 2011 14:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-dinamically-the-oracle-sid-variable-value-in-ps1/m-p/5280815#M641426</guid>
      <dc:creator>Joseph Steinhauser</dc:creator>
      <dc:date>2011-06-06T14:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Display dinamically the ORACLE_SID variable value in PS1</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/display-dinamically-the-oracle-sid-variable-value-in-ps1/m-p/5280816#M641427</link>
      <description>Solved.&lt;BR /&gt;&lt;BR /&gt;Thanks for the great support.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;BG&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jun 2011 16:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/display-dinamically-the-oracle-sid-variable-value-in-ps1/m-p/5280816#M641427</guid>
      <dc:creator>gaudiobe</dc:creator>
      <dc:date>2011-06-06T16:05:37Z</dc:date>
    </item>
  </channel>
</rss>

