24 ms·
If you enjoy stretching what you can get done with limited environments, I recently discovered BusyBox includes not only an AWK implementation but an HTTP serve
by dmux 3y ago
If you enjoy stretching what you can get done with limited environments, I recently discovered BusyBox includes not only an AWK implementation but an HTTP server[0] that supports CGI as well. I spent a weekend setting up a really simple web-app using recutils [1] as the database and BusyBox AWK as the programming language.
If you enjoy bricolage and you feel like wasting a weekend, I would recommend giving it a try!
[0] https://openwrt.org/docs/guide-user/services/webserver/http.httpd https://openwrt.org/docs/guide-user/services/webserver/http....
[1] https://www.gnu.org/software/recutils/ https://www.gnu.org/software/recutils/
- deleted 3y ago[deleted]
- Aachen 3y agoThat looks so featureful (thinking of attack surface here), you might as well install a regular web server at that point. What's the benefit of using busybox for this? Edit: ah is this file size? Or does this refer to RAM? Either way, sounds like that's the benefit > BB httpd can be compiled with only basic features like CGI and ETag and will have only 8Kb
- Crestwave 3y agoBusyBox provides a complete set of POSIX utilities and more in a single minimal binary; there are lots of embedded systems with pretty much just BusyBox installed, although I'm not sure how common it is to compile it with httpd. GP linked an OpenWRT article, so I'm guessing (the site seems to be down) it's included in that OS.
- chasil 3y agoI have found that busybox awk: 1. Does not implement the GNU networking extensions. 2. Does not implement the GNU array sorting extensions. 3. Does implement the mktime() and strftime extensions. I see that there is a call to stat() in the code; I didn't know that GNU added this.
- manonthewall 3y agoBusybox is certainly a gem.