#!/bin/sh
# © Patrik Nilsson 2005
# Licensed under the GPL v2
if [ ! $1 ]; then
    printf "what are we looking for: "
    read PSN
else
    PSN=$1
fi

ps aux | grep $PSN | awk '{ print $2 " \t " $11 }' | egrep -v '(grep|/bin/sh)'