aboutsummaryrefslogtreecommitdiff
path: root/bin/pss
blob: 223b10eb75ce63e0e6061794c65219408eaca164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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