<?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: Exit from su in a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449663#M10503</link>
    <description>Yeh, what they said.&lt;BR /&gt;&lt;BR /&gt;Wot, still no points assigned?....&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Murray</description>
    <pubDate>Wed, 04 Oct 2000 01:47:16 GMT</pubDate>
    <dc:creator>Murray Jones</dc:creator>
    <dc:date>2000-10-04T01:47:16Z</dc:date>
    <item>
      <title>Exit from su in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449657#M10497</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In a script, how do I exit from:&lt;BR /&gt;&lt;BR /&gt;su - user -c "command"&lt;BR /&gt;&lt;BR /&gt;and continue other operations within the script.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;YC</description>
      <pubDate>Tue, 03 Oct 2000 02:32:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449657#M10497</guid>
      <dc:creator>yc_2</dc:creator>
      <dc:date>2000-10-03T02:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exit from su in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449658#M10498</link>
      <description>Unfortunately I don't have a system at hand to test this.  Can you place the command in the background in the script?:&lt;BR /&gt;&lt;BR /&gt;su - user -c "command" 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Murray</description>
      <pubDate>Tue, 03 Oct 2000 03:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449658#M10498</guid>
      <dc:creator>Murray Jones</dc:creator>
      <dc:date>2000-10-03T03:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exit from su in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449659#M10499</link>
      <description>Hi Murray,&lt;BR /&gt;&lt;BR /&gt;The subsequent operations has to be done after the completion of the "su" command. How to go about it with your suggestion ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;YC</description>
      <pubDate>Tue, 03 Oct 2000 04:22:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449659#M10499</guid>
      <dc:creator>yc_2</dc:creator>
      <dc:date>2000-10-03T04:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exit from su in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449660#M10500</link>
      <description>when you do su with -c "command" option, the su will exit as soon as the command finishes its job. put your additional command next to it and things should work. &lt;BR /&gt;&lt;BR /&gt;I have a script which start the oracle listener demon and then start the oracle database in the same script&lt;BR /&gt; su - oracle -c 'lsnrctl start listener'&lt;BR /&gt;          su - oracle -c '/oravl01/oracle/dba/util/start_ctx.sh'&lt;BR /&gt;          su - oracle -c '/oravl01/oracle/8.0.5/ows/3.0/bin/owsctl start wrb'&lt;BR /&gt;          . ~oracle/.profile&lt;BR /&gt;          /oravl01/oracle/8.0.5/ows/3.0/bin/owsctl start www&lt;BR /&gt;          su - taskman -c '/opt/OV/taskman/bin/ptm start DEV'  &lt;BR /&gt;&lt;BR /&gt;hope this answers your question&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Oct 2000 04:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449660#M10500</guid>
      <dc:creator>Manju Kampli</dc:creator>
      <dc:date>2000-10-03T04:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exit from su in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449661#M10501</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;When you complete the command or script specified with the -c option, you will be returned to the script and environment from which you came.  No special action is necessary.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 Oct 2000 10:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449661#M10501</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-10-03T10:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exit from su in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449662#M10502</link>
      <description>When the command specified runs and terminates, it goes to the next line in yur script. It does not need an exit sentence to terminate its process of execution.</description>
      <pubDate>Tue, 03 Oct 2000 11:14:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449662#M10502</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-10-03T11:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exit from su in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449663#M10503</link>
      <description>Yeh, what they said.&lt;BR /&gt;&lt;BR /&gt;Wot, still no points assigned?....&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Murray</description>
      <pubDate>Wed, 04 Oct 2000 01:47:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449663#M10503</guid>
      <dc:creator>Murray Jones</dc:creator>
      <dc:date>2000-10-04T01:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exit from su in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449664#M10504</link>
      <description>Try this :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;su - user -c "command" 2&amp;gt;&amp;amp;1 &amp;amp; &lt;BR /&gt;&lt;BR /&gt;wait  # wait all backgrownd commands &lt;BR /&gt;&lt;BR /&gt;#next command&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Oct 2000 15:06:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/exit-from-su-in-a-script/m-p/2449664#M10504</guid>
      <dc:creator>Luiz Fernando de Andrad</dc:creator>
      <dc:date>2000-10-04T15:06:19Z</dc:date>
    </item>
  </channel>
</rss>

