<?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: killing old processes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883132#M400935</link>
    <description>Thank you for all your responses.&lt;BR /&gt;Yes, i know this is an educational matter and developers should know better.  But as I said, this is a testing procedure and you guys telling me to tell developers to fix it themselves is not a very good solution.&lt;BR /&gt;&lt;BR /&gt;I've decided to create a tmp file (though cronjob) where every monday server stores PID's of jobs that belong to this particular user.  On saturday there is a cronjob that kills all those PID's.&lt;BR /&gt;&lt;BR /&gt;Thank you for all your responses.  I'm closing this thread.</description>
    <pubDate>Tue, 01 Feb 2005 11:04:59 GMT</pubDate>
    <dc:creator>Asya</dc:creator>
    <dc:date>2005-02-01T11:04:59Z</dc:date>
    <item>
      <title>killing old processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883128#M400931</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I work for a software development company and our developers constantly test new software.&lt;BR /&gt;&lt;BR /&gt;The problem that arose is that after their build is done, it leaves bunch of processes running, which eventually kills the system.&lt;BR /&gt;&lt;BR /&gt;Is there any way to find out which processes have been running for 4 days and kill them (they belong to a particular user)?&lt;BR /&gt;&lt;BR /&gt;I've read various posts here and couldn't find anything to help me figure out this problem.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;Asya&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2005 16:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883128#M400931</guid>
      <dc:creator>Asya</dc:creator>
      <dc:date>2005-01-31T16:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: killing old processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883129#M400932</link>
      <description>ps -ef | grep &lt;SOMETHING in="" common=""&gt;&lt;BR /&gt;&lt;BR /&gt;That will provide you all the information you need on the processes.&lt;BR /&gt;&lt;BR /&gt;There are lots of processes on your box that run for more than 4 days, so something that nukes all processed that have run that long will kill the box, same as the old processes.&lt;BR /&gt;&lt;BR /&gt;This sounds like an education issue. Have your developers run the ps command and kill their own processes when they log off.&lt;BR /&gt;&lt;BR /&gt;Alternatively use ps -ef | grep developername to get the process list and kill them that way.&lt;BR /&gt;&lt;BR /&gt;I'm attaching a script called gkill.  It kills groups of processes based on pattern matching. It won't touch root processes.  Used judiciously, it can help you with this issue. I have a non-interactive version as well, if you like the tool.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/SOMETHING&gt;</description>
      <pubDate>Mon, 31 Jan 2005 16:40:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883129#M400932</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-01-31T16:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: killing old processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883130#M400933</link>
      <description>Since processes are left running after the testing is&lt;BR /&gt;done, this is obviously a problem with the software&lt;BR /&gt;being developed. Let your developers know about this.&lt;BR /&gt;Steven has already told you how to remove these&lt;BR /&gt;processes, but once your product  is released, the &lt;BR /&gt;customers are not going to like processes being left&lt;BR /&gt;over even after the software is done.&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2005 16:48:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883130#M400933</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-01-31T16:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: killing old processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883131#M400934</link>
      <description>As said before, this is primarily an education issue.&lt;BR /&gt;&lt;BR /&gt;Try this as a teaching method.&lt;BR /&gt;&lt;BR /&gt;put this line in root's crontab:&lt;BR /&gt;1 2 * * * su - baduser -c 'kill -9 -1'&lt;BR /&gt;(substitute the username of the process owner)&lt;BR /&gt;This will kill all processes owned by baduser at 02:01 every morning.</description>
      <pubDate>Tue, 01 Feb 2005 05:59:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883131#M400934</guid>
      <dc:creator>Gordon  Morrison_1</dc:creator>
      <dc:date>2005-02-01T05:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: killing old processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883132#M400935</link>
      <description>Thank you for all your responses.&lt;BR /&gt;Yes, i know this is an educational matter and developers should know better.  But as I said, this is a testing procedure and you guys telling me to tell developers to fix it themselves is not a very good solution.&lt;BR /&gt;&lt;BR /&gt;I've decided to create a tmp file (though cronjob) where every monday server stores PID's of jobs that belong to this particular user.  On saturday there is a cronjob that kills all those PID's.&lt;BR /&gt;&lt;BR /&gt;Thank you for all your responses.  I'm closing this thread.</description>
      <pubDate>Tue, 01 Feb 2005 11:04:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883132#M400935</guid>
      <dc:creator>Asya</dc:creator>
      <dc:date>2005-02-01T11:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: killing old processes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883133#M400936</link>
      <description>closing thread..</description>
      <pubDate>Tue, 01 Feb 2005 11:05:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-old-processes/m-p/4883133#M400936</guid>
      <dc:creator>Asya</dc:creator>
      <dc:date>2005-02-01T11:05:43Z</dc:date>
    </item>
  </channel>
</rss>

