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
In reply to Re: Process Already Running
by andyford
in thread Process Already Running
by Photius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |