~pakdel-gmail/ocsinventory-unix-agent/hpux

« back to all changes in this revision

Viewing changes to lib/Ocsinventory/Agent/Backend.pm

  • Committer: Amir Pakdel
  • Date: 2010-05-18 07:28:27 UTC
  • Revision ID: amir@ws1524o-pak-linux-20100518072827-se0050qvrej71tt0
can_run now understands "no $binary in /usr/sbin...." which may be returned in HP-UX

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
      my $calling_namespace = caller(0);
29
29
      chomp(my $binpath=`which $binary 2>/dev/null`);
30
 
      return unless -x $binpath;
 
30
      return unless $binpath !~ /no $binary in/ or -x $binpath;
31
31
      $self->{logger}->debug(" - $binary found");
32
32
      1
33
33
    },