<?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: Background process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/background-process/m-p/5057100#M742872</link>
    <description>Thx</description>
    <pubDate>Mon, 09 Jul 2007 09:20:18 GMT</pubDate>
    <dc:creator>MAYIANAN</dc:creator>
    <dc:date>2007-07-09T09:20:18Z</dc:date>
    <item>
      <title>Background process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/background-process/m-p/5057098#M742870</link>
      <description>Hi frns,&lt;BR /&gt;&lt;BR /&gt;      I am doing some FTP process in background from my script. &lt;BR /&gt;&lt;BR /&gt;The issue i am facing now is my script is getting executed fine but since the FTP process is taking more time to get executed in background my application is not returning back to the prompt. &lt;BR /&gt;&lt;BR /&gt;Is there any way to make my script to complete the execution once the FTP processes got over in background????&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jul 2007 06:29:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/background-process/m-p/5057098#M742870</guid>
      <dc:creator>MAYIANAN</dc:creator>
      <dc:date>2007-07-09T06:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Background process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/background-process/m-p/5057099#M742871</link>
      <description>The exact mechanism you are using is not clear but I will assume your script is running ftp in the background but is not watching for it to finish. When you start a background process, always get the PID from the shell variable $! as in:&lt;BR /&gt; &lt;BR /&gt;ftp ... stuff &amp;amp;&lt;BR /&gt;FTP_PID=$!&lt;BR /&gt; &lt;BR /&gt;Now you can monitor $! periodically by checking it with ps as in:&lt;BR /&gt; &lt;BR /&gt;ps -fp $FTP_PID&lt;BR /&gt; &lt;BR /&gt;If ps returns with a non-zero return code, then the process no longer exists and is therefore completed.</description>
      <pubDate>Mon, 09 Jul 2007 07:44:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/background-process/m-p/5057099#M742871</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-07-09T07:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Background process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/background-process/m-p/5057100#M742872</link>
      <description>Thx</description>
      <pubDate>Mon, 09 Jul 2007 09:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/background-process/m-p/5057100#M742872</guid>
      <dc:creator>MAYIANAN</dc:creator>
      <dc:date>2007-07-09T09:20:18Z</dc:date>
    </item>
  </channel>
</rss>

