<?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: export env variable from shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485797#M214033</link>
    <description>thanks a lot for the quick response. that solved my problem. &lt;BR /&gt;&lt;BR /&gt;thanks once again.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ram</description>
    <pubDate>Tue, 15 Feb 2005 04:46:17 GMT</pubDate>
    <dc:creator>MUM_HPS</dc:creator>
    <dc:date>2005-02-15T04:46:17Z</dc:date>
    <item>
      <title>export env variable from shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485793#M214029</link>
      <description>Hi Friends,&lt;BR /&gt;&lt;BR /&gt;here is the small problem,&lt;BR /&gt;&lt;BR /&gt;i want to export ENV variable from Shell Script. &lt;BR /&gt;&lt;BR /&gt;for ex. &lt;BR /&gt;&lt;BR /&gt;i have &lt;BR /&gt;&lt;BR /&gt;test.sh&lt;BR /&gt;--------&lt;BR /&gt;export TEST=TEsting&lt;BR /&gt;&lt;BR /&gt;#./test.sh&lt;BR /&gt;&lt;BR /&gt;#env ---&amp;gt; i dont see TEST variable set here.. &lt;BR /&gt;&lt;BR /&gt;i know that shell variable is different from Environ mental variable. but my requirement is to export a shell variable as a environ mental variable.. let me if any other possibilities.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Ram&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Feb 2005 04:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485793#M214029</guid>
      <dc:creator>MUM_HPS</dc:creator>
      <dc:date>2005-02-15T04:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: export env variable from shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485794#M214030</link>
      <description>Hi Ram,&lt;BR /&gt;&lt;BR /&gt;Try this &lt;BR /&gt;&lt;BR /&gt;# . ./test.sh&lt;BR /&gt;&lt;BR /&gt;# env | grep TEST&lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 15 Feb 2005 04:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485794#M214030</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-02-15T04:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: export env variable from shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485795#M214031</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Either use:&lt;BR /&gt;&lt;BR /&gt;#source ./test.sh&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;#. ./test.sh&lt;BR /&gt;&lt;BR /&gt;Watch the space between the two dots.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bob</description>
      <pubDate>Tue, 15 Feb 2005 04:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485795#M214031</guid>
      <dc:creator>B. Hulst</dc:creator>
      <dc:date>2005-02-15T04:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: export env variable from shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485796#M214032</link>
      <description>Ram,&lt;BR /&gt;if you run your command as ./test.sh you start up a new shell and the scope of the variable TEST is limited to that shell.&lt;BR /&gt;&lt;BR /&gt;Whereas running the script as . ./test.sh&lt;BR /&gt;executes the script within the session you are running from.&lt;BR /&gt;&lt;BR /&gt;The quickest way to demonstrate is to include the line echo $$ in your test.sh and then execute both methods.&lt;BR /&gt;The second will return the process id of your session.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 15 Feb 2005 04:45:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485796#M214032</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2005-02-15T04:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: export env variable from shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485797#M214033</link>
      <description>thanks a lot for the quick response. that solved my problem. &lt;BR /&gt;&lt;BR /&gt;thanks once again.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ram</description>
      <pubDate>Tue, 15 Feb 2005 04:46:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-env-variable-from-shell/m-p/3485797#M214033</guid>
      <dc:creator>MUM_HPS</dc:creator>
      <dc:date>2005-02-15T04:46:17Z</dc:date>
    </item>
  </channel>
</rss>

