Appendix 1. Use in Real World Application
In this article by Giorgio Zarrelli author of the book Mastering Bash, we are moving a step now into the real world creating something that can turn out handy for your daily routine and during this process we will have a look at the common pitfalls in coding and how to make our script reliable. Be short or a long script, we must always ask ourselves the same questions:
- What do we really want to accomplish?
- How much time do we have?
- Do we have all the resources needed?
- Do we have the knowledge required for the task?
We will start coding with a Nagios plugin which will give us a broad understanding of how this monitoring system is and how to make a script dynamically interact with other programs.