Changeset c7d7712522da3b73e4427632b0f3627be2e65022

Show
Ignore:
Timestamp:
03/24/09 21:51:03 (6 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
  • lib/Resmon/Module/PGREP.pm

    rae22e3b rc7d7712  
    99  my $args = join(' ',$arg->{'arg0'},$arg->{'arg1'},$arg->{'arg2'}); 
    1010  $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); 
    1213  if($output) { 
    1314    chomp $output;