<?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: Exiting a script within a script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/exiting-a-script-within-a-script/m-p/4985912#M98882</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you don't want to press enter by yoursef,&lt;BR /&gt;you can use the following:&lt;BR /&gt;&lt;BR /&gt;SCRIPT_WHICH_NEEDS_ENTER &amp;lt;&amp;lt;$LABEL&lt;BR /&gt;&lt;BR /&gt;$LABEL&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;echo "\n"| SCRIPT_WHICH_NEEDS_ENTER &lt;BR /&gt;&lt;BR /&gt;HTH</description>
    <pubDate>Sun, 18 Jun 2006 09:11:51 GMT</pubDate>
    <dc:creator>Victor Fridyev</dc:creator>
    <dc:date>2006-06-18T09:11:51Z</dc:date>
    <item>
      <title>Exiting a script within a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/exiting-a-script-within-a-script/m-p/4985910#M98880</link>
      <description>Hey gang,&lt;BR /&gt;&lt;BR /&gt;I am wanting to execute a 'su - user -c "scriptA"' inside a script (say scriptB).  However, scriptA requires an interrupt (like a return) to exit.  Is there a way to pass variables to scriptA through scriptB while still switching users?  Thanks for the help.</description>
      <pubDate>Fri, 16 Jun 2006 16:13:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/exiting-a-script-within-a-script/m-p/4985910#M98880</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2006-06-16T16:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exiting a script within a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/exiting-a-script-within-a-script/m-p/4985911#M98881</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;See if this helps:&lt;BR /&gt;&lt;BR /&gt;# cat /tmp/scriptA&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;echo "...in A..."&lt;BR /&gt;su juiceman -c "/tmp/scriptB $@ &amp;lt; /dev/null" &lt;BR /&gt;echo "...in A..."&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;# cat /tmp/scriptB&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;echo "B sees $@"&lt;BR /&gt;echo "reading input"&lt;BR /&gt;read&lt;BR /&gt;echo "exiting B..."&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;...Run as:&lt;BR /&gt;&lt;BR /&gt;# /tmp/scriptA hello!&lt;BR /&gt;...in A...&lt;BR /&gt;B sees hello!&lt;BR /&gt;reading input&lt;BR /&gt;exiting B...&lt;BR /&gt;...in A...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 16 Jun 2006 16:48:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/exiting-a-script-within-a-script/m-p/4985911#M98881</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-16T16:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exiting a script within a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/exiting-a-script-within-a-script/m-p/4985912#M98882</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you don't want to press enter by yoursef,&lt;BR /&gt;you can use the following:&lt;BR /&gt;&lt;BR /&gt;SCRIPT_WHICH_NEEDS_ENTER &amp;lt;&amp;lt;$LABEL&lt;BR /&gt;&lt;BR /&gt;$LABEL&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;echo "\n"| SCRIPT_WHICH_NEEDS_ENTER &lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Sun, 18 Jun 2006 09:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/exiting-a-script-within-a-script/m-p/4985912#M98882</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2006-06-18T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exiting a script within a script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/exiting-a-script-within-a-script/m-p/4985913#M98883</link>
      <description>thanks</description>
      <pubDate>Thu, 05 Oct 2006 21:56:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/exiting-a-script-within-a-script/m-p/4985913#M98883</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2006-10-05T21:56:52Z</dc:date>
    </item>
  </channel>
</rss>

