PerkinElmer Informatics Support Forum
Decrease font size
Increase font size
Topic Title: How do I filter out old processes which might no longer be in use
Topic Summary: kill old processes
Created On: 1/5/2017 5:24 AM
Status Post and Reply
Linear : Threading : Single : Branch
Topic Tools Topic Tools
View topic in raw text format. Print this topic.
 1/5/2017 5:24 AM
User is offline View Users Profile Print this message


RAH

Posts: 57
Joined: 5/16/2014

In the below example we can see a number of active processes associated with the columbus user.

If I wanted to target the 'python manage.py' processes and filter using the start time column one can use kstart_time as an argument to ps to sort by start time, then grep for python manage.py processes and output everything in the 5th row and after.

e.g.

$ ps kstart_time -fU columbus | grep 'python manage' | tail -n +5

You might then wish to consider killing any of the old processes.

e.g.

$ sudo kill -9 15169

-------------------------------

RAH



Edited: 1/5/2017 at 5:33 AM by RAH

FuseTalk Basic Edition v4.0 - © 1999-2018 FuseTalk Inc. All rights reserved.