3
votes
1answer
120 views

Get process list with logical intersection of selectors?

The Linux ps command allows multiple selectors, such as user and command name, but always returns the logical OR of those selectors (more than I want). Does anyone know of a method or tool already ...
3
votes
5answers
2k views

Graceful way to kill process

After my bash script is done with the selenium server, the script kills it like this: kill `ps -ef | grep selenium | awk '{ print $2 }'` While this works and it does kill the selenium script, it ...
3
votes
3answers
159 views

Detecting whether a server is loaded

I have to start some performance test on a Rhel 6 box, but before starting the test, i have to make sure there are no other java processes running. The manual way of doing it would be to use "ps -ef ...