Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Unsuccessful stat on filename containing newline at /opt/perl..

Dear guys,

getting this error when executing agent at HP-UX 11.31

dc1hbkp:/tmp# /opt/perl/bin/ocsinventory-agent
Unsuccessful stat on filename containing newline at /opt/perl_32/lib/site_perl/5.8.8/Ocsinventory/Agent/Backend.pm line 33.
dc1hbkp:/tmp#

I have extracted the part of /opt/perl_32/lib/site_perl/5.8.8/Ocsinventory/Agent/Backend.pm containing line 33

    30
    31        my $calling_namespace = caller(0);
    32        chomp(my $binpath=`which $binary 2>/dev/null`);
    33        return unless -x $binpath;
    34        $self->{logger}->debug(" - $binary found");
    35        1
    36      },
in OCS Inventory NG agent for Unix by (380 points)

2 Answers

0 votes
Hi,

Post ocsinventory-agent.log content.

Regards

Frank
by (90.2k points)
0 votes
I have the same problem on Solaris.  Reason is that the standard Solaris /usr/bin/which command does not accept blanks in arguments.  The line "return $common->can_run('/Library/Application\ Support/VMware\ Fusion/vmrun')" in VmWareDesktop.pm causes the error.  It appears that the /usr/bin/which command on Linux is not affected.

Question to developers: can I just put "return $common->can_run('vmrun')" in VmWareDesktop.pm ?
by (140 points)
 
Powered by Question2Answer
...