<?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: Problem with Exporting a varaible from shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-exporting-a-varaible-from-shell-script/m-p/3691026#M247192</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it's a normal behavior : when you call a script from the command line a new shell is invoked to execute it. So the environnement wich you modify is that of the new shell.&lt;BR /&gt;&lt;BR /&gt;To have current shell environnement modified by your script, simply invoke it with . (point)&lt;BR /&gt;&lt;BR /&gt;For exemple, if your script's name is foo, and you are in the directory where foo reside, type :&lt;BR /&gt;&lt;BR /&gt;. ./foo&lt;BR /&gt;&lt;BR /&gt;Or if foo is /tmp/foo, type :&lt;BR /&gt;&lt;BR /&gt;. /tmp/foo&lt;BR /&gt;&lt;BR /&gt;Hope this will help&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;(PBFWME;)</description>
    <pubDate>Wed, 14 Dec 2005 07:53:49 GMT</pubDate>
    <dc:creator>Eric SAUBIGNAC</dc:creator>
    <dc:date>2005-12-14T07:53:49Z</dc:date>
    <item>
      <title>Problem with Exporting a varaible from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-exporting-a-varaible-from-shell-script/m-p/3691024#M247190</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am having the below problem in my HPUX machine.&lt;BR /&gt;&lt;BR /&gt;I have an Shell script which is having some automation code. The code has a line like below.&lt;BR /&gt;&lt;BR /&gt;PROJECT=MIT&lt;BR /&gt;export PROJECT&lt;BR /&gt;&lt;BR /&gt;After running the above script I have to run one more script in which PROJECT variable will be used. But at this point I am getting blank value for PROJECT variable.&lt;BR /&gt;&lt;BR /&gt;But when I set that variable from $ prompt, then it is working fine. I have tried as administrator also.&lt;BR /&gt;&lt;BR /&gt;Could anyone help me to solve the above problem.</description>
      <pubDate>Wed, 14 Dec 2005 07:34:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-exporting-a-varaible-from-shell-script/m-p/3691024#M247190</guid>
      <dc:creator>Dinesh Reddy</dc:creator>
      <dc:date>2005-12-14T07:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Exporting a varaible from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-exporting-a-varaible-from-shell-script/m-p/3691025#M247191</link>
      <description>&lt;A href="http://www.tinker.ncsu.edu/LEGO/shell_help.html" target="_blank"&gt;http://www.tinker.ncsu.edu/LEGO/shell_help.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please refer this link, it should helpful &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 14 Dec 2005 07:37:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-exporting-a-varaible-from-shell-script/m-p/3691025#M247191</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-12-14T07:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Exporting a varaible from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-exporting-a-varaible-from-shell-script/m-p/3691026#M247192</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it's a normal behavior : when you call a script from the command line a new shell is invoked to execute it. So the environnement wich you modify is that of the new shell.&lt;BR /&gt;&lt;BR /&gt;To have current shell environnement modified by your script, simply invoke it with . (point)&lt;BR /&gt;&lt;BR /&gt;For exemple, if your script's name is foo, and you are in the directory where foo reside, type :&lt;BR /&gt;&lt;BR /&gt;. ./foo&lt;BR /&gt;&lt;BR /&gt;Or if foo is /tmp/foo, type :&lt;BR /&gt;&lt;BR /&gt;. /tmp/foo&lt;BR /&gt;&lt;BR /&gt;Hope this will help&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;&lt;BR /&gt;(PBFWME;)</description>
      <pubDate>Wed, 14 Dec 2005 07:53:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-exporting-a-varaible-from-shell-script/m-p/3691026#M247192</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2005-12-14T07:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Exporting a varaible from shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-exporting-a-varaible-from-shell-script/m-p/3691027#M247193</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help. Now I could able to find the solution to my problem.&lt;BR /&gt;&lt;BR /&gt;Thanks for your assistance.&lt;BR /&gt;&lt;BR /&gt;Dinesh</description>
      <pubDate>Wed, 14 Dec 2005 09:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-exporting-a-varaible-from-shell-script/m-p/3691027#M247193</guid>
      <dc:creator>Dinesh Reddy</dc:creator>
      <dc:date>2005-12-14T09:07:19Z</dc:date>
    </item>
  </channel>
</rss>

