|
|
|
|
|
by 0xbadcafebee
344 days ago
|
|
> No one should ever run a Bash script under CGI. It’s almost impossible to do so securely, and performance is terrible. Actually shell scripting is the perfect language for CGI on embedded devices. Bash is ~500k and other shells are 10x smaller. It can output headers and html just fine, you can call other programs to do complex stuff. Obviously the source compresses down to a tiny size too, and since it's a script you can edit it or upload new versions on the fly. Performance is good enough for basic work. Just don't let the internet or unauthenticated requests at it (use an embedded web server with basic http auth). |
|