summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2022-10-13 18:43:00 -0600
committerAaron Ball <nullspoon@oper.io>2022-10-13 18:43:00 -0600
commita87301a1761046b073fdf0355ebc36df57fc7bdd (patch)
tree246e98c35ac2482a63265595e326deb7c8bbbdad /README.md
parent7a9e46793e4beef43654cee443d54a1a4299b77b (diff)
downloadpsre-master.tar.gz
psre-master.tar.xz
Add example usage to READMEHEADmaster
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
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.

Generated by cgit