<?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: problem from process running in background in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119383#M314541</link>
    <description>You can also use "jobs -l" to get the PIDs.&lt;BR /&gt;&lt;BR /&gt;You can also get a nice hierarchal listing of all of your processes with:&lt;BR /&gt;$ UNIX95= ps -Hfu $LOGNAME&lt;BR /&gt;</description>
    <pubDate>Fri, 21 Dec 2007 07:58:28 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-12-21T07:58:28Z</dc:date>
    <item>
      <title>problem from process running in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119379#M314537</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Today i executed one scripts(.scr)which will generate reports(.csv file).&lt;BR /&gt;&lt;BR /&gt;i run in this way&lt;BR /&gt;&lt;BR /&gt;abc.scr &amp;amp;&lt;BR /&gt;it means i will run in backgound.&lt;BR /&gt;This script runs while loop and once records are over it teminates. It generates one CSV file as output.&lt;BR /&gt;&lt;BR /&gt;I observed that this script is not getting terminated and cntinuously generatin records.&lt;BR /&gt;Files size is incerasing like anything. Actually it should process only 100 items.&lt;BR /&gt;Is any way to identify and kill this process?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 20 Dec 2007 09:19:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119379#M314537</guid>
      <dc:creator>N Gopal</dc:creator>
      <dc:date>2007-12-20T09:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem from process running in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119380#M314538</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;if you start your script in backgroud&lt;BR /&gt;you get some job-id&lt;BR /&gt;&lt;BR /&gt;$ abc.scr &amp;amp;&lt;BR /&gt;[1] &lt;BR /&gt;&lt;BR /&gt;$ now you can &lt;BR /&gt;$ kill %1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;$ ps -ef | grep abc.scr&lt;BR /&gt;&lt;BR /&gt;$ kill $the-pid-you-see&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or you can save the pid into a pidfile for later reference:&lt;BR /&gt;&lt;BR /&gt;$ abc.scr &amp;amp;&lt;BR /&gt;$ echo $! &amp;gt;/tmp/abc.scr.pid&lt;BR /&gt;$ ps -fp $(/tmp/abc.scr.pid)&lt;BR /&gt;$ do-something-else&lt;BR /&gt;$&lt;BR /&gt;$ kill $(cat /tmp/abc.scr.pid)&lt;BR /&gt;&lt;BR /&gt;But better you debug why your loop does not terminate. What kind of loop is there in your script?&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Dec 2007 09:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119380#M314538</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2007-12-20T09:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem from process running in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119381#M314539</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;see your background jobs with:&lt;BR /&gt;&lt;BR /&gt;$ jobs&lt;BR /&gt;[1] running  abc.scr &amp;amp;&lt;BR /&gt;[2] running  efg.scr &amp;amp;&lt;BR /&gt;&lt;BR /&gt;$ kill %1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;HGH&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Dec 2007 09:38:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119381#M314539</guid>
      <dc:creator>Hemmetter</dc:creator>
      <dc:date>2007-12-20T09:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem from process running in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119382#M314540</link>
      <description>Hi Hem,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot problem got resolved. I killed the processes.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 20 Dec 2007 10:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119382#M314540</guid>
      <dc:creator>N Gopal</dc:creator>
      <dc:date>2007-12-20T10:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem from process running in background</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119383#M314541</link>
      <description>You can also use "jobs -l" to get the PIDs.&lt;BR /&gt;&lt;BR /&gt;You can also get a nice hierarchal listing of all of your processes with:&lt;BR /&gt;$ UNIX95= ps -Hfu $LOGNAME&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Dec 2007 07:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-from-process-running-in-background/m-p/4119383#M314541</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-12-21T07:58:28Z</dc:date>
    </item>
  </channel>
</rss>

