From a87301a1761046b073fdf0355ebc36df57fc7bdd Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Thu, 13 Oct 2022 18:43:00 -0600 Subject: Add example usage to README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 17e4d76..687b060 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,17 @@ character for easier splitting. null-byte delimit the arguments of a command, leaving it only partially printable. `psre` replaces those null bytes with the ascii space char (`0x20` or `32 dec`) so the full cmdline is printable. + + +## Example Usage: Bulk killing stuck processes + +Sometimes webkit spins up many sub processes which get stuck and only a `kill +-9` will shut them down. This can be very cumbersome to fix by hand as there +can be many stuck PIDs. To do this easily with `psre`, run the following: + +``` +kill -9 $(psre webkit --noself) +``` + +**Note** the `--noself` switch which causes `psre` to filter its own PID from +the list so it is not also killed or an error thrown when this command runs. -- cgit v1.2.3