pidof
Tue Aug 22, 2006 · 43 words

Here's one way of recreating that handy utility. I'm assuming that the utility is always run after the program we're looking for, so it has a smaller PID

fiBook:~ filipp$ ps A | grep something | grep -v grep | awk '{print $1;}'


back · essays · credits ·