Both Python and PHP languages are very powerful, and they can be used to solve a lot of complex problems; however, it may happen that the embedded system lacks both. In this case, we can use the C language or, if we like scripting, we can try to use Bash.
In fact, even if the Bash scripting language is commonly used to solve the system administrator's tasks, it can be also used to resolve several issues with some tricks. So, let's see how we can use it in our web LED management problem.
By default, Bash has no networking features; however, as a workaround, we can use the inetd daemon. This tool is a network daemon program that specializes in adding networking features to programs that normally don't have these features. Its configuration file
/etc/inetd.conf tells Bash which program needs to be run when an incoming network connection is received, but before doing it, it redirects the program's stdin, stdout, and stderr streams to the socket used to manage the connection...