<?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: Clearing all session environment variables in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721762#M63335</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Btw, you will not be able to clear READONLY environment variables unless you are root.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
    <pubDate>Fri, 10 May 2002 21:15:36 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2002-05-10T21:15:36Z</dc:date>
    <item>
      <title>Clearing all session environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721761#M63334</link>
      <description>Does anyone know of a way that I can clear (unset) all of the environment variables set in a session? I'm hoping for something more elegant than a loop based on env doing individual unsets</description>
      <pubDate>Fri, 10 May 2002 21:02:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721761#M63334</guid>
      <dc:creator>wvsa</dc:creator>
      <dc:date>2002-05-10T21:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing all session environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721762#M63335</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Btw, you will not be able to clear READONLY environment variables unless you are root.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 10 May 2002 21:15:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721762#M63335</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-05-10T21:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing all session environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721763#M63336</link>
      <description>&lt;BR /&gt;Well, if you just want to execute a command without any environmental variables, you can do:&lt;BR /&gt;  env -i &lt;COMMAND&gt;&lt;BR /&gt;using:&lt;BR /&gt;  env -i /usr/bin/ksh&lt;BR /&gt;would get you a shell sans your previous environemnt.&lt;/COMMAND&gt;</description>
      <pubDate>Fri, 10 May 2002 21:16:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721763#M63336</guid>
      <dc:creator>Zach Parker</dc:creator>
      <dc:date>2002-05-10T21:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing all session environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721764#M63337</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;what you want seems to be critical in my opinion. When leaving a session, you want to "unset" *all* environment variables??? This is not good, because a lot of these variables are necessary for your system to run. With a unset- command you will not unset the system-environment variables like PATH, TZ. These variables are protected, they can't be simply unset. If you created own variables, and exported them, they will be lost automatically when you finish the shell in which you created them. And if you changed values for any system variables, the old value, from before your session will be actual again, when you finish the shell.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Sat, 11 May 2002 07:40:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721764#M63337</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-05-11T07:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing all session environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721765#M63338</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;&lt;BR /&gt;# unset variable_name&lt;BR /&gt;&lt;BR /&gt;-Niraj</description>
      <pubDate>Mon, 13 May 2002 01:44:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721765#M63338</guid>
      <dc:creator>Niraj Kumar Verma</dc:creator>
      <dc:date>2002-05-13T01:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing all session environment variables</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721766#M63339</link>
      <description>Do you mean that you want to revert to the environment set during login?&lt;BR /&gt;There's no easy way to do this - the best workaround I can think of is to simply logout and login again.</description>
      <pubDate>Mon, 13 May 2002 01:57:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clearing-all-session-environment-variables/m-p/2721766#M63339</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-05-13T01:57:43Z</dc:date>
    </item>
  </channel>
</rss>

