matteocorti / check_updates

check_updates is a Nagios plugin to check if RedHat or Fedora system is up-to-date
https://matteocorti.github.io/check_updates/
GNU General Public License v3.0
20 stars 18 forks source link

Fix "bad interpreter" error. #45

Closed Tas-sos closed 3 years ago

Tas-sos commented 3 years ago

Fixes :

When I run this script in my CentOS 7 system, I had the following error :

/usr/lib64/nagios/plugins/check_updates -h
-bash: /usr/lib64/nagios/plugins/check_updates: perl: bad interpreter: No such file or directory

I had to run it as follows to avoid the above error:

perl check_updates -h

Proposed Changes

matteocorti commented 3 years ago

Please check the INSTALL file and run

perl Makefile.pl
make

The script in blib/script/check_updates will contain the correct shebang for your system.