Sorry, this is maybe a stupid question, but I am new to shell scripts.
I have a file called oem-device-name.sh
.
I need to execute an external check for Zabbix:
https://www.zabbix.com/documentation/5.0/manual/config/items/itemtypes/external
The script itself is just 1 line, it is only an snmpget command:
snmpget -v 1 -c public -Oa -Ov -OQ 172.28.132.44:31161 BSS-RCP-MIB::oem-device-name.0
Wich Shebang should you recommend for my snmpget?
And does it makes a difference if you write
#!\bin\sh
or #!\bin\bash
in a .sh
file.