Changeset c7d7712522da3b73e4427632b0f3627be2e65022
- Timestamp:
- 03/24/09 21:51:03
(4 years ago)
- Author:
- Mark Harrison <mark@omniti.com>
- git-committer:
- Mark Harrison <mark@omniti.com> 1237931463 +0000
- git-parent:
[cbbf0acaadfd823f2ccb4daa3e6e5e8f1bd724e0]
- git-author:
- Mark Harrison <mark@omniti.com> 1237931463 +0000
- Message:
Work with processes that have no arguments
git-svn-id: https://labs.omniti.com/resmon/trunk@172 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rae22e3b |
rc7d7712 |
|
| 9 | 9 | my $args = join(' ',$arg->{'arg0'},$arg->{'arg1'},$arg->{'arg2'}); |
|---|
| 10 | 10 | $args =~s/\s+$//; |
|---|
| 11 | | my $output = cache_command("pgrep -f -l '$proc $args' | grep -v sh | head -1", 500); |
|---|
| | 11 | $proc .= " $args" if $args; |
|---|
| | 12 | my $output = cache_command("pgrep -f -l '$proc' | grep -v sh | head -1", 500); |
|---|
| 12 | 13 | if($output) { |
|---|
| 13 | 14 | chomp $output; |
|---|