<?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: environment variables in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715472#M251738</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;here you have an overview of the login procedure:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/A1700-90014/ch03s08.html" target="_blank"&gt;http://docs.hp.com/en/A1700-90014/ch03s08.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Mon, 23 Jan 2006 11:00:37 GMT</pubDate>
    <dc:creator>Oviwan</dc:creator>
    <dc:date>2006-01-23T11:00:37Z</dc:date>
    <item>
      <title>environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715465#M251731</link>
      <description>hi,&lt;BR /&gt;i have simple question: how can i set up  environment variables for each user?&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 23 Jan 2006 10:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715465#M251731</guid>
      <dc:creator>Kolb</dc:creator>
      <dc:date>2006-01-23T10:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715466#M251732</link>
      <description>This is typically done in a profile:  .profile in the user's home directory for an individual or in /etc/profile for variables to be available to all users.&lt;BR /&gt;&lt;BR /&gt;export FOO=bar&lt;BR /&gt;&lt;BR /&gt;for example.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 23 Jan 2006 10:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715466#M251732</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-01-23T10:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715467#M251733</link>
      <description>Hi,&lt;BR /&gt;set them up in the users login script, found in the users home directory:&lt;BR /&gt;ls -a&lt;BR /&gt;for example in .profile&lt;BR /&gt;export ORACLE_HOME=/u01/app/oracle/9.2</description>
      <pubDate>Mon, 23 Jan 2006 10:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715467#M251733</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-01-23T10:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715468#M251734</link>
      <description>Also,&lt;BR /&gt;if you want to set the environment for all users have a look at the scripts in /etc&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 10:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715468#M251734</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-01-23T10:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715469#M251735</link>
      <description>Hi Kolb:&lt;BR /&gt;&lt;BR /&gt;You can declare and export environmental variables in a user's profile.&lt;BR /&gt;&lt;BR /&gt;Often, a better approach, however, is to build and export all of the variables in a separate file.&lt;BR /&gt;&lt;BR /&gt;The resulting file can be sourced (read) by the login profile, scripts or applied to a crontab entry.&lt;BR /&gt;&lt;BR /&gt;To source (reaad) one file from another, simply do:&lt;BR /&gt;&lt;BR /&gt;# cat ./sourceme&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;export WHO=Kolb&lt;BR /&gt;&lt;BR /&gt;# cat ./somescript&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;. ./sourceme&lt;BR /&gt;echo "I am ${WHO}"&lt;BR /&gt;&lt;BR /&gt;Thus sourcing is done by writing a dot (".") followed by a space (" "), followed by the file to source (read).&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 10:57:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715469#M251735</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-23T10:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715470#M251736</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;You can set them in the users individual .profile located in their home directory.&lt;BR /&gt;&lt;BR /&gt;for example if if you want their prompt to show the the system name and current directory enter the follwing line&lt;BR /&gt;&lt;BR /&gt;   export PS1=`uname -n`:'$PWD # '&lt;BR /&gt;&lt;BR /&gt;or to set a command history file:&lt;BR /&gt;&lt;BR /&gt;  HISTFILE=$HOME/.sh_history;export HISTFILE&lt;BR /&gt;&lt;BR /&gt;or to set default editor to VI&lt;BR /&gt;   &lt;BR /&gt;   EDITOR=vi&lt;BR /&gt;   EXPORT EDITOR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see, there are multiple ways to set the variables.&lt;BR /&gt;&lt;BR /&gt;If the users are using a graphical interface, you will need to either modify their .dtprofile as well, or tell the .dtprofile to read the .profile.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 10:58:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715470#M251736</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2006-01-23T10:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715471#M251737</link>
      <description>thanks a lot Good People :)&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 10:58:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715471#M251737</guid>
      <dc:creator>Kolb</dc:creator>
      <dc:date>2006-01-23T10:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715472#M251738</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;here you have an overview of the login procedure:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/A1700-90014/ch03s08.html" target="_blank"&gt;http://docs.hp.com/en/A1700-90014/ch03s08.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 23 Jan 2006 11:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/environment-variables/m-p/3715472#M251738</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2006-01-23T11:00:37Z</dc:date>
    </item>
  </channel>
</rss>

