<?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 Script Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659590#M928879</link>
    <description>&lt;BR /&gt;Hi Folks,&lt;BR /&gt;&lt;BR /&gt;We have various environment variables set ie $mtrack_dump, $matrack_asset etc.&lt;BR /&gt;&lt;BR /&gt;I'm trying to write a script that takes mtrack as an argument and then within the script add eihter the asset or dump part of the string. Then I'm trying to reference the value of the enviroment variable&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;&lt;BR /&gt;echo $"$1" gives $mtrack_asset&lt;BR /&gt;&lt;BR /&gt;instead of the value of $mtrack_asset&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Glynn</description>
    <pubDate>Wed, 06 Feb 2002 11:20:00 GMT</pubDate>
    <dc:creator>Glynn Aherne_1</dc:creator>
    <dc:date>2002-02-06T11:20:00Z</dc:date>
    <item>
      <title>Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659590#M928879</link>
      <description>&lt;BR /&gt;Hi Folks,&lt;BR /&gt;&lt;BR /&gt;We have various environment variables set ie $mtrack_dump, $matrack_asset etc.&lt;BR /&gt;&lt;BR /&gt;I'm trying to write a script that takes mtrack as an argument and then within the script add eihter the asset or dump part of the string. Then I'm trying to reference the value of the enviroment variable&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;&lt;BR /&gt;echo $"$1" gives $mtrack_asset&lt;BR /&gt;&lt;BR /&gt;instead of the value of $mtrack_asset&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Glynn</description>
      <pubDate>Wed, 06 Feb 2002 11:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659590#M928879</guid>
      <dc:creator>Glynn Aherne_1</dc:creator>
      <dc:date>2002-02-06T11:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659591#M928880</link>
      <description>Hi Glyn,&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;echo "$1"&lt;BR /&gt;or &lt;BR /&gt;echo "${1}"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Wed, 06 Feb 2002 11:22:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659591#M928880</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-02-06T11:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659592#M928881</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You need to use the shell's 'eval' command to achieve this. Check it out in man sh-posix.&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;mtrack_asset=&lt;WHATEVER&gt;&lt;BR /&gt;&lt;BR /&gt;$1 is "mtrack"&lt;BR /&gt;&lt;BR /&gt;eval echo \$${1}_asset&lt;BR /&gt;&lt;BR /&gt;will display the contents of mtrack_asset.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;/WHATEVER&gt;</description>
      <pubDate>Wed, 06 Feb 2002 11:30:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659592#M928881</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-02-06T11:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659593#M928882</link>
      <description>&lt;BR /&gt;Justo,&lt;BR /&gt;&lt;BR /&gt;echo "$1" &lt;BR /&gt;or &lt;BR /&gt;echo "${1}" &lt;BR /&gt;&lt;BR /&gt;will only give me the string I'd supplied to the script&lt;BR /&gt;&lt;BR /&gt;mtrack&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2002 11:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659593#M928882</guid>
      <dc:creator>Glynn Aherne_1</dc:creator>
      <dc:date>2002-02-06T11:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659594#M928883</link>
      <description>It may not be cresious but:&lt;BR /&gt;echo $"$(echo $1)"&lt;BR /&gt;should do the work.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Trond</description>
      <pubDate>Wed, 06 Feb 2002 11:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659594#M928883</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2002-02-06T11:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659595#M928884</link>
      <description>&lt;BR /&gt;John,&lt;BR /&gt;&lt;BR /&gt;Perfect just what i needed &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Glynn</description>
      <pubDate>Wed, 06 Feb 2002 11:43:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659595#M928884</guid>
      <dc:creator>Glynn Aherne_1</dc:creator>
      <dc:date>2002-02-06T11:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659596#M928885</link>
      <description>Sorry Glynn, I missunderstand you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Wed, 06 Feb 2002 12:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2659596#M928885</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-02-06T12:49:35Z</dc:date>
    </item>
  </channel>
</rss>

