From 125237e4a7cf7e6d2ec28565d4403ab9c9908d85 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 10 Oct 2019 23:12:02 +0200 Subject: add generic shell helper scripts --- bin/pss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/pss (limited to 'bin/pss') diff --git a/bin/pss b/bin/pss new file mode 100755 index 0000000..223b10e --- /dev/null +++ b/bin/pss @@ -0,0 +1,15 @@ +#!/bin/sh + +# Print info for running processes mathing PATTERN + +# Author: Florian Fischer +# License: WTFPL + +if test -z "$1" +then + echo "Usage: $0 PATTERN" + exit 1 +fi + +PIDS=$(pgrep -d , -f $1) +test -n "$PIDS" && ps -Fp $PIDS -- cgit v1.2.3