ps -u | grep -v grep | grep cat | grep /dev/stdin | head -n 1 | awk -F   { print $2 }