pgrep where have you been all my life?

Ever need to find the PID of a specific process, or if a process is running? Pgrep to the rescue!

pgrep pigdin

This allows you to do cool things like:

#!/usr/bin/perl

if (`pgrep speedcrunch`) {
    print "is running\n";
} else {
    print "It's not running\n";
    # do some other stuff
}


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 18.116.40.177
To prevent spam please submit by clicking the kitten: