<?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: .profile setup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942405#M411946</link>
    <description>You can't use a .profile like this because you are calling it as a child process. You need to source the .profile via the shell's . operator.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;~/.profile is very different from&lt;BR /&gt;. ~/.profile&lt;BR /&gt;&lt;BR /&gt;You want the .profile to become part of the foreground process rather than simply a child process because one of the the fundamental tenets of UNIX is that a child cannot alter the environment of its parent.</description>
    <pubDate>Tue, 22 Nov 2005 20:05:02 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-11-22T20:05:02Z</dc:date>
    <item>
      <title>.profile setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942401#M411942</link>
      <description>Hi, &lt;BR /&gt;I have a problem .. &lt;BR /&gt;&lt;BR /&gt;- .profile calls a file called cron.profile and sets up ORACLE_SID, ORACLE_HOME. &lt;BR /&gt;While I have put echo $ORACLE_SID &amp;amp; echo $ORACLE_HOME at the end of ecript cron.profile, which shows me proper as I turned on set -vx in the script. &lt;BR /&gt;&lt;BR /&gt;But when script finishes executing and I get the shell back, I do not see this variables set.. &lt;BR /&gt;Any clue  on this? &lt;BR /&gt;&lt;BR /&gt;Appreciate responses in advance</description>
      <pubDate>Tue, 22 Nov 2005 18:57:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942401#M411942</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2005-11-22T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: .profile setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942402#M411943</link>
      <description>Hi Prashant:&lt;BR /&gt;&lt;BR /&gt;You need to export the variables.  For example:&lt;BR /&gt;&lt;BR /&gt;# export ORACLE_HOME=/apps/oracle/8.1.7&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 22 Nov 2005 19:04:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942402#M411943</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-11-22T19:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: .profile setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942403#M411944</link>
      <description>Hi Prashant,&lt;BR /&gt;&lt;BR /&gt;Yes you will need to export the variable after assigning the path.&lt;BR /&gt;&lt;BR /&gt;export ORACLE_HOME=/opt/oracle/product/92 &lt;BR /&gt;&lt;BR /&gt;export ORACLE_SID=&lt;NAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IA&lt;/NAME&gt;</description>
      <pubDate>Tue, 22 Nov 2005 19:36:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942403#M411944</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-11-22T19:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: .profile setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942404#M411945</link>
      <description>It's exported, but what I am thinking is, script which is called in .profile is not returning variable to .profile which is parent shell..which is a normal behaviour of Unix.. sounds ok ? &lt;BR /&gt;&lt;BR /&gt;Prashant</description>
      <pubDate>Tue, 22 Nov 2005 19:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942404#M411945</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2005-11-22T19:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: .profile setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942405#M411946</link>
      <description>You can't use a .profile like this because you are calling it as a child process. You need to source the .profile via the shell's . operator.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;~/.profile is very different from&lt;BR /&gt;. ~/.profile&lt;BR /&gt;&lt;BR /&gt;You want the .profile to become part of the foreground process rather than simply a child process because one of the the fundamental tenets of UNIX is that a child cannot alter the environment of its parent.</description>
      <pubDate>Tue, 22 Nov 2005 20:05:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942405#M411946</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-22T20:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: .profile setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942406#M411947</link>
      <description>Don't call a script (as Clay says) - source the cron.profile file instead...&lt;BR /&gt;&lt;BR /&gt;. ./somepath/cron.profile&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 22 Nov 2005 20:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942406#M411947</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-11-22T20:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: .profile setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942407#M411948</link>
      <description>Thanks guys for responses .. Last two responses are answers for my question..I appreciate it..</description>
      <pubDate>Thu, 24 Nov 2005 22:27:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942407#M411948</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2005-11-24T22:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: .profile setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942408#M411949</link>
      <description>Thanks</description>
      <pubDate>Thu, 24 Nov 2005 22:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-setup/m-p/4942408#M411949</guid>
      <dc:creator>Prashant Zanwar_4</dc:creator>
      <dc:date>2005-11-24T22:30:46Z</dc:date>
    </item>
  </channel>
</rss>

