<?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: Change in environment variable in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180916#M459972</link>
    <description>Ankit Namaste,&lt;BR /&gt;&lt;BR /&gt;Check on one of the location:&lt;BR /&gt;&lt;BR /&gt;1) User's .profile&lt;BR /&gt;$grep runU $HOME/.profile&lt;BR /&gt;&lt;BR /&gt;2) under /etc/profile&lt;BR /&gt;grep runU /etc/profile&lt;BR /&gt;&lt;BR /&gt;3)&lt;BR /&gt;grep runU /etc/PATH&lt;BR /&gt;&lt;BR /&gt;Let me know your findings.&lt;BR /&gt;&lt;BR /&gt;Cheers!!</description>
    <pubDate>Fri, 12 Jun 2009 02:16:35 GMT</pubDate>
    <dc:creator>Nido</dc:creator>
    <dc:date>2009-06-12T02:16:35Z</dc:date>
    <item>
      <title>Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180915#M459971</link>
      <description>Dear All,&lt;BR /&gt;I am using HP-UX 11.23. My path environment variable having these values...&lt;BR /&gt;&lt;BR /&gt;PATH=/oracle/PRD/920_64/bin:.:/home/prdadm:/usr/sap/PRD/SYS/exe/runU:/usr/sap/PRD/SYS/exe/run:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/hparray/bin:/opt/nettladm/bin/opt/fcms/bin:/usr/contrib/kwdb/bin:/usr/bin/X11:/opt/graphics/common/bin:/opt/upgrade/bin:/usr/contib/bin/X11:/opt/ipf/bin:/opt/resmon/bin:/opt/ignite/bin:/opt/sec_mgmt/bastille/bin:/opt/gnome/bin:/ot/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/mx/bin:/opt/sec_mgmt/spc/bin&lt;BR /&gt;&lt;BR /&gt;Now, i want to remove the path /usr/sap/PRD/SYS/exe/runU: from this variable. &lt;BR /&gt;&lt;BR /&gt;Plz tell me the procedure. This is path of prdadm user but in the home directory ie /home/prdadm i didn't found the .* files. &lt;BR /&gt;&lt;BR /&gt;Ankit&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jun 2009 02:00:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180915#M459971</guid>
      <dc:creator>Ankit Kr Gupta</dc:creator>
      <dc:date>2009-06-12T02:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180916#M459972</link>
      <description>Ankit Namaste,&lt;BR /&gt;&lt;BR /&gt;Check on one of the location:&lt;BR /&gt;&lt;BR /&gt;1) User's .profile&lt;BR /&gt;$grep runU $HOME/.profile&lt;BR /&gt;&lt;BR /&gt;2) under /etc/profile&lt;BR /&gt;grep runU /etc/profile&lt;BR /&gt;&lt;BR /&gt;3)&lt;BR /&gt;grep runU /etc/PATH&lt;BR /&gt;&lt;BR /&gt;Let me know your findings.&lt;BR /&gt;&lt;BR /&gt;Cheers!!</description>
      <pubDate>Fri, 12 Jun 2009 02:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180916#M459972</guid>
      <dc:creator>Nido</dc:creator>
      <dc:date>2009-06-12T02:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180917#M459973</link>
      <description>Thanks Nido, &lt;BR /&gt;&lt;BR /&gt;But i didn't find any output after these searches as my output is ...... &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;prdadm 22&amp;gt; grep runU $HOME/.profile&lt;BR /&gt;prdadm 23&amp;gt; grep runU /etc/profile&lt;BR /&gt;prdadm 24&amp;gt; grep runU /etc/PATH&lt;BR /&gt;prdadm 25&amp;gt; $PATH&lt;BR /&gt;/oracle/PRD/920_64/bin:.:/home/prdadm:/usr/sap/PRD/SYS/exe/runU:/usr/sap/PRD/SYS/exe/run:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/fcms/bin:/usr/contrib/kwdb/bin:/usr/bin/X11:/opt/graphics/common/bin:/opt/upgrade/bin:/usr/contrib/bin/X11:/opt/ipf/bin:/opt/resmon/bin:/opt/ignite/bin:/opt/sec_mgmt/bastille/bin:/opt/gnome/bin:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/mx/bin:/opt/sec_mgmt/spc/bin: Command not found.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ankit</description>
      <pubDate>Fri, 12 Jun 2009 02:25:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180917#M459973</guid>
      <dc:creator>Ankit Kr Gupta</dc:creator>
      <dc:date>2009-06-12T02:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180918#M459974</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Plz tell me the procedure.&lt;BR /&gt;&lt;BR /&gt;To do what?  Remove it now?  Make sure that&lt;BR /&gt;it never gets put in?&lt;BR /&gt;&lt;BR /&gt;Something like this may get it out:&lt;BR /&gt;&lt;BR /&gt;xxx='/usr/sap/PRD/SYS/exe/runU'&lt;BR /&gt;export PATH=` echo ":${PATH}:" | sed -e "s|:${xxx}:|:|" -e 's/^://' -e s'/:$//' `&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] i didn't found the .* files.&lt;BR /&gt;&lt;BR /&gt;"man your_shell" to see the other places it&lt;BR /&gt;might look.  "/etc/profile", perhaps?</description>
      <pubDate>Fri, 12 Jun 2009 02:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180918#M459974</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-06-12T02:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180919#M459975</link>
      <description>&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;user but in the home directory ie /home/prdadm i didn't found the .* files&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;  prdadm 22&amp;gt; grep runU $HOME/.profile &lt;BR /&gt;&lt;BR /&gt;Your statements contradicting.&lt;BR /&gt;&lt;BR /&gt;prdadm 22&amp;gt; grep runU $HOME/.profile &lt;BR /&gt;if you don't have $HOME/.profile , error message should be "grep: can't open .profile"&lt;BR /&gt;&lt;BR /&gt;Check your .profile it should have some program/script which would be setting the PATH.&lt;BR /&gt;&lt;BR /&gt;Cheers!!</description>
      <pubDate>Fri, 12 Jun 2009 04:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180919#M459975</guid>
      <dc:creator>Nido</dc:creator>
      <dc:date>2009-06-12T04:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180920#M459976</link>
      <description>Thanks Nido, &lt;BR /&gt;You were right. .* files are exist in $HOME directory. i was seaching by ll command. when i used ll .* command. It shows me some files like .*. &lt;BR /&gt;&lt;BR /&gt;Now my problem is that /usr/sap/PRD/SYS/exe/runU path is showing befor /usr/sap/PRD/SYS/exe/run in PATH environment variable. But when i am checking in script, /usr/sap/PRD/SYS/exe/run is everywhere before /usr/sap/PRD/SYS/exe/runU. Like in script .sapenv_MSLDR.sh ....&lt;BR /&gt;&lt;BR /&gt;MSLDR:prdadm 45&amp;gt; grep runU $HOME/.sapenv_MSLDR.sh&lt;BR /&gt;for d in /usr/sap/PRD/SYS/exe/run /usr/sap/PRD/SYS/exe/runU $HOME .; do&lt;BR /&gt;            LIBPATH=/usr/lib:/lib:/usr/sap/PRD/SYS/exe/run:/usr/sap/PRD/SYS/exe/runU; export LIBPATH&lt;BR /&gt;            for d in /usr/sap/PRD/SYS/exe/run /usr/sap/PRD/SYS/exe/runU; do&lt;BR /&gt;            SHLIB_PATH=/usr/sap/PRD/SYS/exe/run:/usr/sap/PRD/SYS/exe/runU; export SHLIB_PATH&lt;BR /&gt;            for d in /usr/sap/PRD/SYS/exe/run /usr/sap/PRD/SYS/exe/runU; do&lt;BR /&gt;            LIBPATH=/usr/lib:/lib:/usr/lpp/icli/sbin:/usr/sap/PRD/SYS/exe/run:/usr/sap/PRD/SYS/exe/r&lt;BR /&gt;nU; export LIBPATH&lt;BR /&gt;            for d in /usr/lpp/icli/sbin /usr/sap/PRD/SYS/exe/run /usr/sap/PRD/SYS/exe/runU; do&lt;BR /&gt;            LD_LIBRARY_PATH=/usr/sap/PRD/SYS/exe/run:/usr/sap/PRD/SYS/exe/runU; export LD_LIBRARY_PA&lt;BR /&gt;H&lt;BR /&gt;            for d in /usr/sap/PRD/SYS/exe/run /usr/sap/PRD/SYS/exe/runU; do&lt;BR /&gt;&lt;BR /&gt;Now, i want that in PATH variable /usr/sap/PRD/SYS/exe/run should be before /usr/sap/PRD/SYS/exe/runU. plz suggest what i should do.&lt;BR /&gt;&lt;BR /&gt;Ankit</description>
      <pubDate>Fri, 12 Jun 2009 04:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180920#M459976</guid>
      <dc:creator>Ankit Kr Gupta</dc:creator>
      <dc:date>2009-06-12T04:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180921#M459977</link>
      <description>Ankit Bhai,&lt;BR /&gt;&lt;BR /&gt;Simple answer : Don't use the script anymore "$HOME/.sapenv_MSLDR.sh"&lt;BR /&gt;Comment this line in your $HOME/.profile &lt;BR /&gt;&lt;BR /&gt;set your PATH variables:&lt;BR /&gt;&lt;BR /&gt;export LIBPATH=/usr/sap/PRD/SYS/exe/run:/usr/sap/PRD/SYS/exe/runU:.&lt;BR /&gt;&lt;BR /&gt;and whatever path you want to add , just add it&lt;BR /&gt;&lt;BR /&gt;As nike says : Just Do it!!&lt;BR /&gt;&lt;BR /&gt;Comprender?&lt;BR /&gt;&lt;BR /&gt;Cheers!!</description>
      <pubDate>Fri, 12 Jun 2009 05:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180921#M459977</guid>
      <dc:creator>Nido</dc:creator>
      <dc:date>2009-06-12T05:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180922#M459978</link>
      <description>Thanks Nido,&lt;BR /&gt;But i want to change the PATH variable not the addition to the variable as currenly it is ...&lt;BR /&gt;&lt;BR /&gt;PATH=/oracle/PRD/920_64/bin:.:/home/prdadm:/usr/sap/PRD/SYS/exe/runU:/usr/sap/&lt;BR /&gt;PRD/SYS/exe/run:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:&lt;BR /&gt;/opt/hparray/bin:/opt/nettladm/bin/opt/fcms/bin:/usr/contrib/kwdb/bin:/usr/bin/X11:/opt/&lt;BR /&gt;graphics/common/bin:/opt/upgrade/bin:/usr/contib/bin/X11:/opt/ipf/bin:/opt/resmon/bin&lt;BR /&gt;:/opt/ignite/bin:/opt/sec_mgmt/bastille/bin:/opt/gnome/bin:/ot/mozilla:/opt/wbem/bin:/o&lt;BR /&gt;pt/wbem/sbin:/opt/mx/bin:/opt/sec_mgmt/spc/bin &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i want it like ..&lt;BR /&gt;&lt;BR /&gt;PATH=/oracle/PRD/920_64/bin:.:/home/prdadm:/usr/sap/&lt;BR /&gt;PRD/SYS/exe/run:/usr/sap/PRD/SYS/exe/runU:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:&lt;BR /&gt;/opt/hparray/bin:/opt/nettladm/bin/opt/fcms/bin:/usr/contrib/kwdb/bin:/usr/bin/X11:/opt/&lt;BR /&gt;graphics/common/bin:/opt/upgrade/bin:/usr/contib/bin/X11:/opt/ipf/bin:/opt/resmon/bin&lt;BR /&gt;:/opt/ignite/bin:/opt/sec_mgmt/bastille/bin:/opt/gnome/bin:/ot/mozilla:/opt/wbem/bin:/o&lt;BR /&gt;pt/wbem/sbin:/opt/mx/bin:/opt/sec_mgmt/spc/bin &lt;BR /&gt;or  this .&lt;BR /&gt;&lt;BR /&gt;PATH=/oracle/PRD/920_64/bin:.:/home/prdadm:/usr/sap/&lt;BR /&gt;PRD/SYS/exe/run:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:&lt;BR /&gt;/opt/hparray/bin:/opt/nettladm/bin/opt/fcms/bin:/usr/contrib/kwdb/bin:/usr/bin/X11:/opt/&lt;BR /&gt;graphics/common/bin:/opt/upgrade/bin:/usr/contib/bin/X11:/opt/ipf/bin:/opt/resmon/bin&lt;BR /&gt;:/opt/ignite/bin:/opt/sec_mgmt/bastille/bin:/opt/gnome/bin:/ot/mozilla:/opt/wbem/bin:/o&lt;BR /&gt;pt/wbem/sbin:/opt/mx/bin:/opt/sec_mgmt/spc/bin &lt;BR /&gt;&lt;BR /&gt;Also plz note that it is for user prdadm not for root.&lt;BR /&gt;&lt;BR /&gt;Ankit</description>
      <pubDate>Fri, 12 Jun 2009 10:02:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180922#M459978</guid>
      <dc:creator>Ankit Kr Gupta</dc:creator>
      <dc:date>2009-06-12T10:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180923#M459979</link>
      <description>&lt;!--!*#--&gt;Ankit,&lt;BR /&gt;&lt;BR /&gt;1) "grep" is probably the wrong tool for this job, as it will only tell you if the file it looked at, not any scripts or files it might run/reference which could change the settings&lt;BR /&gt;&lt;BR /&gt;2) all of the previous posts are based on the use of sh / ksh style shell.  Given your talking Oracle &amp;amp; SAP, and:&lt;BR /&gt; prdadm 22&amp;gt; grep ......&lt;BR /&gt; prdadm 23&amp;gt; grep ...... &lt;BR /&gt; prdadm 24&amp;gt; grep ......&lt;BR /&gt; prdadm 25&amp;gt; $PATH &lt;BR /&gt;&lt;BR /&gt;I'd bet money "prdadm" is running "csh".  If so, it uses a different set of startup files.  From csh man page:&lt;BR /&gt;"~/.cshrc &lt;BR /&gt;A csh script sourced (executed) at the beginning of execution by each shell. See WARNINGS&lt;BR /&gt;&lt;BR /&gt;~/.login &lt;BR /&gt;A csh script sourced (executed) by login shell, after .cshrc at login.&lt;BR /&gt;&lt;BR /&gt;/etc/csh.login &lt;BR /&gt;A csh script sourced (executed) before ~/.cshrc and ~/.login when starting a csh login (analogous to /etc/profile in the Bourne shell)."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In any event, check the password file entry for the user in question to find out for certain which shell is in use, and consult the "man" page for that shell.  The "FILES" section should point you at the files that shell uses to set it's login environment.&lt;BR /&gt;&lt;BR /&gt;3) After determining which shell / startup files apply, view them to see if they setenv PATH, or what other files / scripts they may reference.  You will need to review any referenced scripts as well to determine what they do as well.&lt;BR /&gt;&lt;BR /&gt;Once you locate the scripts that muck about with PATH (and there could be more than one), post your findings....</description>
      <pubDate>Fri, 12 Jun 2009 13:39:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180923#M459979</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-06-12T13:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180924#M459980</link>
      <description>Long PATH names are a real big problem, including security issues. Start with the global PATH file: /etc/PATH. Trim this down to the bare minimums! PATH is just a simple crutch -- all commands can be run with a full pathname. Unfortunately, some app writers try to be 'helpful' with sourced variable files that include PATH=$PATH...</description>
      <pubDate>Fri, 12 Jun 2009 17:15:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180924#M459980</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-06-12T17:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change in environment variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180925#M459981</link>
      <description>Thanks to all of u.&lt;BR /&gt;&lt;BR /&gt;Ankit</description>
      <pubDate>Thu, 16 Jul 2009 05:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-in-environment-variable/m-p/5180925#M459981</guid>
      <dc:creator>Ankit Kr Gupta</dc:creator>
      <dc:date>2009-07-16T05:07:12Z</dc:date>
    </item>
  </channel>
</rss>

