<?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: permanent bourne shell environment change in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356090#M667641</link>
    <description>&amp;gt;there was a file out there called .PATH&lt;BR /&gt;&lt;BR /&gt;This must be specific to your system.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I'm not certain that I actually needed to log out and back in&lt;BR /&gt;&lt;BR /&gt;You can always source your .profile or execute the command in question.</description>
    <pubDate>Sun, 15 Feb 2009 09:26:50 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-02-15T09:26:50Z</dc:date>
    <item>
      <title>permanent bourne shell environment change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356084#M667635</link>
      <description>I am trying to set an environmental value for my java runtime environment on HPUX 11.23 in order to support an upgrade of Data Protector from 6.0 to 6.1. In my data space, I enter:&lt;BR /&gt;export DP_JAVA_DIR=/opt/java1.5/jre/&lt;BR /&gt;&lt;BR /&gt;And this works: I see it when I type:&lt;BR /&gt;env&lt;BR /&gt;And DP6.1 starts up without displaying the "your JRE version is wrong" message that I was getting *before* performing the export.&lt;BR /&gt;But, after I shut down the DP6.1 GUI and the data space where I performed the export, the environment reverts back to the state it was in before I performed the export. In other words, it loses the pointer to java.&lt;BR /&gt;&lt;BR /&gt;How do I get the java pointer in the environment so that it stays there even after I shut down the data space?</description>
      <pubDate>Wed, 11 Feb 2009 02:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356084#M667635</guid>
      <dc:creator>Travel Mug</dc:creator>
      <dc:date>2009-02-11T02:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: permanent bourne shell environment change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356085#M667636</link>
      <description>There are no bourne shells here, just posix or ksh.&lt;BR /&gt;&lt;BR /&gt;You can put that export in your .profile.&lt;BR /&gt;Is there some configuration file for DP where you can add it?</description>
      <pubDate>Wed, 11 Feb 2009 02:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356085#M667636</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-11T02:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: permanent bourne shell environment change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356086#M667637</link>
      <description>Dear Mug,&lt;BR /&gt;&lt;BR /&gt;just add that line to the .profile of login that is running xomni.  Or, if that would cause problems with other programs - just write a script file that runs xomni for you, and in THAT script add the export.&lt;BR /&gt;&lt;BR /&gt;----------suggested script below---------&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;export DP_JAVA_DIR=/opt/java1.5/jre/&lt;BR /&gt;/opt/omni/bin/xomni &lt;BR /&gt;------------------------------------&lt;BR /&gt;&lt;BR /&gt;Now save that script as DP6, &lt;BR /&gt;and do a "chmod u+x" on the file to make it executable.  Then put it in the path for your user, or add a directory to your path and put it in there, like /home/TMug/bin&lt;BR /&gt;and put your script in there. So, anytime you type "DP6" it will kick off your export and then run your omniback (ne' data protector) interface.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.</description>
      <pubDate>Wed, 11 Feb 2009 03:01:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356086#M667637</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2009-02-11T03:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: permanent bourne shell environment change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356087#M667638</link>
      <description>Dennis - I am new to HP-UX, so thakns for that tidbit about the shells. There is no config file in DP. Putting the export command in my .profile did not solve the problem (in fact, for reasons unknown to me, the statement in my .profile failed to set the value into the environment).&lt;BR /&gt;&lt;BR /&gt;TwoProc - You said "Then put it in the path for your user, or add a directory to your path". I assume you refer to the path as shown in the environment. This is the problem =&amp;gt; I don't know how to do that. I think maybe that is what I should really be asking. How do I add the new path to the "PATH=" in the environment?</description>
      <pubDate>Sat, 14 Feb 2009 03:24:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356087#M667638</guid>
      <dc:creator>Travel Mug</dc:creator>
      <dc:date>2009-02-14T03:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: permanent bourne shell environment change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356088#M667639</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Putting the export command in my .profile&lt;BR /&gt;&amp;gt; did not solve the problem [...]&lt;BR /&gt;&lt;BR /&gt;You also need to have the shell (re-)read&lt;BR /&gt;your "~/.profile" file, so log in again, or:&lt;BR /&gt;      .   ~/.profile&lt;BR /&gt;&lt;BR /&gt;(Unless you're using a C shell, which doesn't&lt;BR /&gt;look at "~/.profile".)&lt;BR /&gt;&lt;BR /&gt;Note that we can't see what's in your&lt;BR /&gt;"~/.profile", and we can't see exactly what&lt;BR /&gt;you're doing after you change it, all of&lt;BR /&gt;which makes it hard to say why things aren't&lt;BR /&gt;working as expected.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; How do I add the new path to the "PATH="&lt;BR /&gt;&amp;gt; in the environment?&lt;BR /&gt;&lt;BR /&gt;Depending on exactly what you want:&lt;BR /&gt;      PATH="new_dir:${PATH}"&lt;BR /&gt;or&lt;BR /&gt;      PATH="${PATH}:new_dir"&lt;BR /&gt;&lt;BR /&gt;Again, adding this to your "~/.profile" may&lt;BR /&gt;be useful, depending on what's in there&lt;BR /&gt;already.&lt;BR /&gt;&lt;BR /&gt;      ls -l ~/.profile</description>
      <pubDate>Sat, 14 Feb 2009 03:54:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356088#M667639</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-02-14T03:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: permanent bourne shell environment change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356089#M667640</link>
      <description>That did the trick. I did not realize that there was a file out there called .PATH&lt;BR /&gt;I vi'd into it and added the path, then logged out and logged back in, and viola`. Also, just to play around and maybe learn something, I un-did my change to the .PATH file, logged out, back in, and issued the command:&lt;BR /&gt;&lt;BR /&gt;PATH=$PATH:{path}&lt;BR /&gt;&lt;BR /&gt;then logged out and back in, and same thing, only a lot easier, only I'm not certain that I actually needed to log out and back in at that point. At any rate, problem solved. Thanks to all.</description>
      <pubDate>Sat, 14 Feb 2009 04:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356089#M667640</guid>
      <dc:creator>Travel Mug</dc:creator>
      <dc:date>2009-02-14T04:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: permanent bourne shell environment change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356090#M667641</link>
      <description>&amp;gt;there was a file out there called .PATH&lt;BR /&gt;&lt;BR /&gt;This must be specific to your system.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I'm not certain that I actually needed to log out and back in&lt;BR /&gt;&lt;BR /&gt;You can always source your .profile or execute the command in question.</description>
      <pubDate>Sun, 15 Feb 2009 09:26:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/permanent-bourne-shell-environment-change/m-p/4356090#M667641</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-15T09:26:50Z</dc:date>
    </item>
  </channel>
</rss>

