I have built a script to untar, configure, make, install ... my zabbix agents on servers.
In this script, i do "zabbix_agentd -t agent.version" and want to ask if the command returned without errors:
Is 255 the correct return value if the command was executed correctly, or which value should be returned?
Is there a list of the different return codes?
In this script, i do "zabbix_agentd -t agent.version" and want to ask if the command returned without errors:
Code:
zabbix_agentd -t agent.version [ $? == 255 ] && sleep 3 || exit
Is there a list of the different return codes?


Comment