http://www.perlmonks.org?node_id=638845


in reply to Process Already Running

One problem is that you can have other processes that match that aren't the one you're looking for. For example, say your editing a program in vi at the same time that you're trying to see if that program is running. Then your grep might erroneously return an unwanted positive.

non-Perl: Andy Ford