<?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: script help - sending variable to a second script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929089#M818183</link>
    <description>Hi Jeff:&lt;BR /&gt;&lt;BR /&gt;This would work as coded if you *export* the 'ABC' variable in script-1.  Your code would read:&lt;BR /&gt;&lt;BR /&gt;ABC=$1&lt;BR /&gt;export ABC&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 17 Mar 2003 20:18:59 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2003-03-17T20:18:59Z</dc:date>
    <item>
      <title>script help - sending variable to a second script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929087#M818181</link>
      <description>Help!&lt;BR /&gt;I have a script that runs whenever an interface down event happens.  What I am trying to accomplish is after i have collected the variables from the event, i want to send those variables to a different script for processing.  My reason behind this, is that the original script just keeps growing and growing with new if then else statements, so i am trying to make the management of the scripts easier.  Here is an example&lt;BR /&gt;&lt;BR /&gt;Script 1&lt;BR /&gt;&lt;BR /&gt;ABC=$1&lt;BR /&gt;EFG=$2&lt;BR /&gt;if [ $ABC = 123 ] ; then &lt;BR /&gt;    ./execute/2nd script&lt;BR /&gt;else&lt;BR /&gt;    exit 0&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Script 2&lt;BR /&gt;&lt;BR /&gt;HIJ = $ABC (from the first script)&lt;BR /&gt;&lt;BR /&gt;is this possible??&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;jeff</description>
      <pubDate>Mon, 17 Mar 2003 20:08:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929087#M818181</guid>
      <dc:creator>Jeff Paciolla_2</dc:creator>
      <dc:date>2003-03-17T20:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: script help - sending variable to a second script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929088#M818182</link>
      <description>my apologies for putting this in the database section.  If anybody knows how i can move this question to the general section please let me know.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;jeff</description>
      <pubDate>Mon, 17 Mar 2003 20:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929088#M818182</guid>
      <dc:creator>Jeff Paciolla_2</dc:creator>
      <dc:date>2003-03-17T20:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: script help - sending variable to a second script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929089#M818183</link>
      <description>Hi Jeff:&lt;BR /&gt;&lt;BR /&gt;This would work as coded if you *export* the 'ABC' variable in script-1.  Your code would read:&lt;BR /&gt;&lt;BR /&gt;ABC=$1&lt;BR /&gt;export ABC&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 17 Mar 2003 20:18:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929089#M818183</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-03-17T20:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: script help - sending variable to a second script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929090#M818184</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Keep a . before you execute the second script and the variables set by the first script will be inherited by the second one.&lt;BR /&gt;&lt;BR /&gt;. ./execute/2ndscript&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 17 Mar 2003 20:19:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929090#M818184</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-03-17T20:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: script help - sending variable to a second script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929091#M818185</link>
      <description>thanks  - both ways worked</description>
      <pubDate>Mon, 17 Mar 2003 20:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-sending-variable-to-a-second-script/m-p/2929091#M818185</guid>
      <dc:creator>Jeff Paciolla_2</dc:creator>
      <dc:date>2003-03-17T20:33:57Z</dc:date>
    </item>
  </channel>
</rss>

