Changeset 84f66161d9898a3b49ef755faa5a6ff509f7a5e6
- Timestamp:
- 09/09/09 16:45:24
(4 years ago)
- Author:
- Mark Harrison <mark@omniti.com>
- git-committer:
- Mark Harrison <mark@omniti.com> 1252514724 +0000
- git-parent:
[65336e0fe19c6ca674b0457ed254927d507e4fca]
- git-author:
- Mark Harrison <mark@omniti.com> 1252514724 +0000
- Message:
Fix for pgrep check false positives
git-svn-id: https://labs.omniti.com/resmon/trunk@212 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r19be283 |
r84f6616 |
|
| 10 | 10 | $args =~s/\s+$//; |
|---|
| 11 | 11 | $proc .= " $args" if $args; |
|---|
| 12 | | my $output = cache_command("pgrep -f -l '$proc' | head -1", 180); |
|---|
| | 12 | my $output = cache_command("pgrep -f -l '$proc' | grep -v pgrep | head -1", |
|---|
| | 13 | 180); |
|---|
| 13 | 14 | if($output) { |
|---|
| 14 | 15 | chomp $output; |
|---|