1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/bin/bash

if [ "$1" == "" ] 
then
	echo "error missing username"
	echo "proper usage: 'stalk.sh username'"
	exit
fi

/pub/hammy/pkg/ps/ps -u "$1" -o pid,user,etimes,comm,args