6 ms·
> Even a simple web page requires to install 100MBs of dependencies I had problems with having to log in to a bunch of audio encoders last weekend to find out
by iso1210 4y ago
> Even a simple web page requires to install 100MBs of dependencies
I had problems with having to log in to a bunch of audio encoders last weekend to find out why they were engaged.
I looked at the webpage, a few calls with http/digest returning xml.
I strung together a quick perl script to take an ip/user/password, fire it off to the device, decode the output, fire off more queries, and dump out a <tr>, and then wrapped that in a bash script which generated the rest of the page for the N devices I wanted the status of. Took less than 60 minutes. Deployed it as a new apache virtual host with +ExecCGI.
3878 bytes plus OS provided packages for things like kernel etc, and now I can save time again and again by looking at the status page.
You can choose to make a simple webpage to perform a simple task and have it take 100s of MB, or you can choose not to.