<?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 an environment in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866850#M277682</link>
    <description>The setenv command is a so called shell built in of csh.&lt;BR /&gt;So it's got to be available when you run this shell.</description>
    <pubDate>Thu, 21 Sep 2006 02:10:39 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2006-09-21T02:10:39Z</dc:date>
    <item>
      <title>Setting an environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866845#M277677</link>
      <description>im trying to set up a user base environment changes for some software. &lt;BR /&gt;&lt;BR /&gt;the instructions say to set it in the users .login file by using "setenv"&lt;BR /&gt;&lt;BR /&gt;I read on hp that setenv is not avaliable on hp-ux11i V1 so I dont know what to do. I tried set and env but im not sure how to write it in the .login&lt;BR /&gt;&lt;BR /&gt;here are the changes Im suppose to make &lt;BR /&gt;&lt;BR /&gt;setenv PLATFORM `uname -s`_`uname -r`&lt;BR /&gt;&lt;BR /&gt;there are a few others but its in the same format....&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Wed, 20 Sep 2006 19:51:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866845#M277677</guid>
      <dc:creator>Joe_Flow_1</dc:creator>
      <dc:date>2006-09-20T19:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting an environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866846#M277678</link>
      <description>setenv is for csh. To use the same command in sh/ksh you need to use the export command -- eg.&lt;BR /&gt;setenv VAR1 "value"&lt;BR /&gt;becomes&lt;BR /&gt;VAR1=value;export VAR1&lt;BR /&gt;&lt;BR /&gt;Alternatively, you could change your default shell to csh by modifying the default shell in /etc/passwd, but since csh is NOT a modern shell and lacks a lot of features I think you'd be better of converting the commands to a POSIX compatible format (sh, ksh, etc.)&lt;BR /&gt;&lt;BR /&gt;If you have more questions about syntax I'm sure a lot of people here would love to help out.</description>
      <pubDate>Wed, 20 Sep 2006 20:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866846#M277678</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-09-20T20:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting an environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866847#M277679</link>
      <description>Should it matter what shell you are in if it goes into .login file since it is on boot.</description>
      <pubDate>Wed, 20 Sep 2006 22:53:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866847#M277679</guid>
      <dc:creator>Joe_Flow_1</dc:creator>
      <dc:date>2006-09-20T22:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting an environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866848#M277680</link>
      <description>Set it in .login if login shell for user is csh, else in .cshrc or .profile in case of posix shell. (sh and ksh)</description>
      <pubDate>Wed, 20 Sep 2006 23:04:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866848#M277680</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-09-20T23:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting an environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866849#M277681</link>
      <description>so if the shell is csh....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;setenv for V1 of hpux does not excist, what do I use... &lt;BR /&gt;&lt;BR /&gt;The exprt he said earlier was for Posix shell...?</description>
      <pubDate>Wed, 20 Sep 2006 23:18:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866849#M277681</guid>
      <dc:creator>Joe_Flow_1</dc:creator>
      <dc:date>2006-09-20T23:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting an environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866850#M277682</link>
      <description>The setenv command is a so called shell built in of csh.&lt;BR /&gt;So it's got to be available when you run this shell.</description>
      <pubDate>Thu, 21 Sep 2006 02:10:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866850#M277682</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-09-21T02:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting an environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866851#M277683</link>
      <description>The setenv and unsetenv functions exist on Tru64 UNIX, and will be available with the HP-UX 11i v2 May 2005 release. These functions are also available on a temporary basis in the Tru64 UNIX Migration Environment for HP-UX.\&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://devrsrc1.external.hp.com/STKT/impacts/i331.html" target="_blank"&gt;http://devrsrc1.external.hp.com/STKT/impacts/i331.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;we have v1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Im not sure if what you told me is still true.  This is why I thought setenv didnt work. &lt;BR /&gt;</description>
      <pubDate>Thu, 21 Sep 2006 08:42:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866851#M277683</guid>
      <dc:creator>Joe_Flow_1</dc:creator>
      <dc:date>2006-09-21T08:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting an environment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866852#M277684</link>
      <description>Joe,&lt;BR /&gt;&lt;BR /&gt;I think you're confusing shells and OS releases.  First review /etc/passwd.  Check which shells your users are using.  Then change the appropriate file in the appropriate way based on the shell each user has assigned.&lt;BR /&gt;&lt;BR /&gt;Under csh&lt;BR /&gt;==========&lt;BR /&gt;* Login script: /home/user/.login&lt;BR /&gt;* Login script: /home/user/.cshrc&lt;BR /&gt;* Syntax for setting/exporting an environmental variable: "sentenv VARIABLE value"&lt;BR /&gt;&lt;BR /&gt;Under sh-posix, ksh, etc.&lt;BR /&gt;==========================&lt;BR /&gt;* Login script: /home/user/.profile&lt;BR /&gt;* Syntax for setting/exporting an environmental variable: "VARIABLE=value; export VARIABLE"&lt;BR /&gt;&lt;BR /&gt;For other differences between various shells, see:&lt;BR /&gt;&lt;A href="http://www.hep.phy.cam.ac.uk/lhcb/LHCbSoftTraining/documents/ShellChoice.pdf" target="_blank"&gt;www.hep.phy.cam.ac.uk/lhcb/LHCbSoftTraining/documents/ShellChoice.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As was already mentioned, use of csh is deprecated.  You should switch your users over to sh-posix or ksh, if possible.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Thu, 21 Sep 2006 09:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-an-environment/m-p/3866852#M277684</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-21T09:04:49Z</dc:date>
    </item>
  </channel>
</rss>

