Bash – capture exit code / result of last command
root@wintermute:/nfs# /etc/init.d/dnsmasq start
* Starting DNS forwarder and DHCP server dnsmasq [ OK ]
root@wintermute:/nfs# echo $?
0
Yes. All is well.
This post is licensed under
CC BY 4.0
by the author.