Quantcast
Channel: PerkinElmer Informatics Support Forum
Viewing all articles
Browse latest Browse all 469

How do I filter out old processes which might no longer be in use

$
0
0

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


Viewing all articles
Browse latest Browse all 469

Trending Articles