Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create a pidof command to find PID numbers easily' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a pidof command to find PID numbers easily
Authored by: filipp on Nov 11, '06 04:02:45AM
I just stick this in my ~/.bash_profile:

pidof () { ps -Ac | egrep $@ | awk '{print $1}'; }

It's not a *strict* pidof because you can user partial process names, but for me, it's even more useful like this.

[ Reply to This | # ]