<?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: Setting Environment Variables in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437086#M5590</link>
    <description>I forgot the syntax:&lt;BR /&gt;export &lt;YOURVARIABLENAME&gt;&lt;BR /&gt;Thats all...&lt;/YOURVARIABLENAME&gt;</description>
    <pubDate>Wed, 16 Aug 2000 16:47:56 GMT</pubDate>
    <dc:creator>Victor BERRIDGE</dc:creator>
    <dc:date>2000-08-16T16:47:56Z</dc:date>
    <item>
      <title>Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437085#M5589</link>
      <description>I am new to HP-UX and am having difficulties finding out where to setup environment variables.  I am using the Bourne shell and am trying to setup the variable below:&lt;BR /&gt;&lt;BR /&gt;AGENT_DIR=/opt/agent/service&lt;BR /&gt;&lt;BR /&gt;Where would I set this to make it permenent and what is the syntax.  &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 16 Aug 2000 16:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437085#M5589</guid>
      <dc:creator>John Smoltz</dc:creator>
      <dc:date>2000-08-16T16:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437086#M5590</link>
      <description>I forgot the syntax:&lt;BR /&gt;export &lt;YOURVARIABLENAME&gt;&lt;BR /&gt;Thats all...&lt;/YOURVARIABLENAME&gt;</description>
      <pubDate>Wed, 16 Aug 2000 16:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437086#M5590</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-08-16T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437087#M5591</link>
      <description>in your .profile, or /etc/profile for all&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Victor</description>
      <pubDate>Wed, 16 Aug 2000 16:49:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437087#M5591</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-08-16T16:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437088#M5592</link>
      <description>I set the variable in the .profile file and logged out.  When I run echo $AGENT_DIR it comes up blank.</description>
      <pubDate>Wed, 16 Aug 2000 16:49:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437088#M5592</guid>
      <dc:creator>John Smoltz</dc:creator>
      <dc:date>2000-08-16T16:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437089#M5593</link>
      <description>Can set in the /etc/profile using the syntax of &lt;BR /&gt;AGENT....=...&lt;BR /&gt;export AGENT...&lt;BR /&gt;&lt;BR /&gt;This would be global for all users. If you are looking for a particular to have this variable, use the $HOME/.profile.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Aug 2000 16:50:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437089#M5593</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-16T16:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437090#M5594</link>
      <description>Generally for all users in the machine, go and edit /etc/profile&lt;BR /&gt;&lt;BR /&gt;If you were new, do: &lt;BR /&gt;cp /etc/profile /etc/profile.16.08.00 (make a copy of the current)&lt;BR /&gt;vi profile&lt;BR /&gt;VAR=whatever&lt;BR /&gt;export VAR&lt;BR /&gt;&lt;BR /&gt;If you want it for a particular user, in $HOME/.profile ( in .profile of that specific user's home directory). For root is the same available. If root's home dir is / modify /.profile with the same entry.&lt;BR /&gt;&lt;BR /&gt;For cshell, the file to be modified is .login and the command is the same with set in front of.</description>
      <pubDate>Wed, 16 Aug 2000 16:55:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437090#M5594</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-16T16:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437091#M5595</link>
      <description>Are you using an X emulation? or are you in Xwindows? in that case you would be using a .dtprofile and not reading your .profile...</description>
      <pubDate>Wed, 16 Aug 2000 16:56:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437091#M5595</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-08-16T16:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437092#M5596</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Also remember to export the variable after setting it.&lt;BR /&gt;&lt;BR /&gt;In case you are using the CDE environment ensure that your .dtprofile has DTSOURCEPROFILE set to true otherwise it won't source your .profile.&lt;BR /&gt;&lt;BR /&gt;Also ensure that you set your *loginShell to TRUE in your /etc/dt/config/C/sys.resources file. If the file doesn't exist it should be under /usr/dt/config/ .&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Wed, 16 Aug 2000 16:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437092#M5596</guid>
      <dc:creator>Vikas Khator</dc:creator>
      <dc:date>2000-08-16T16:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437093#M5597</link>
      <description>Thanks all...It was referencing the .dtprofile and when I uncommented it, it worked....Thanks for your help!</description>
      <pubDate>Wed, 16 Aug 2000 17:15:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437093#M5597</guid>
      <dc:creator>John Smoltz</dc:creator>
      <dc:date>2000-08-16T17:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Environment Variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437094#M5598</link>
      <description>One last point wrt X / CDE or VUE, if you find at somepoint the variable isn't picked up in say hp,dt or an xterm window run the dt,x or hpterm window with the command line option -ls, it'll force the terminal client to read yor .profile without the need to set the variable in your .dtprofile see man hpterm etc for details : also can be set in a file $home .Xresources : man pages have the syntax but off the top of my head :&lt;BR /&gt;&lt;BR /&gt;hpterm*loginShell :True should do the trick</description>
      <pubDate>Wed, 16 Aug 2000 18:35:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-environment-variables/m-p/2437094#M5598</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-08-16T18:35:19Z</dc:date>
    </item>
  </channel>
</rss>

