The [`pgrep` command](http://linux.die.net/man/1/pgrep) would be useful here.