A Bash web server
Final Comments
A Bash web server is a quick and easy solution for viewing the output from Bash scripts and commands. I especially like the fact that I don't need to install any special software, nor do I need to write any HTML code.
It is important to note that the number of concurrent connections is very low (one per second if the nc -q
option is 1
).
A Bash web server supports client-side GET
and POST
requests. However, for complex requirements, the Bash code could start to get messy quickly. In that case, it would probably be best to look at another solution.
Infos
- One-line web servers: https://gist.github.com/willurd/5720255
- FIGlet documentation: http://www.figlet.org/
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)