3 ms·
The only use case I can think of is an extremely constrained environment where bash is the only way of interfacing with it. I tried making a really basic router
by brobdingnagians 8y ago
The only use case I can think of is an extremely constrained environment where bash is the only way of interfacing with it. I tried making a really basic router do some more complicated processing once because I couldn't figure out how to get any other programming environment on it; but later realized it was worth just buying better routers that could be modified... or figuring out how to anyways.
- oblio 8y agoOr BOFHs (http://bofh.bjash.com/ http://bofh.bjash.com/) in banks and other "secure" environments.
- shawn 8y agoNo way. Having to program a router in bash seems fun! Send me your old router!
- nisa 8y agocheckout OpenWrt, you have a posix compliant ash shell from busybox and lot's of shellmagic in the base. You can parse json from bash and interact with the router via an system-bus where you can write plugins in posix-sh that can be called via json-rpc from the browser. https://openwrt.org/docs/guide-developer/ubus https://openwrt.org/docs/guide-developer/ubus - example script: https://wiki.openwrt.org/doc/techref/rpcd https://wiki.openwrt.org/doc/techref/rpcd
- alerighi 8y agoFor what I understand, this framework is compatible only with Bash, and not with other POSIX shells. Tipically on a router and other embedded platforms you find a minimal shell, like ash, that is POSIX-compatible but lacks of all the GNU extensions that Bash have and are used by this framework. You find a full version of Bash only on GNU/Linux (not even in other UNIX OS like BSD), and there you can install the interpreter for the programming language of your choice
- devonkim 8y agoA coworker of mine wrote a Hadoop job scheduler (Oozie replacement) scheduler in bash because our defense network’s packaging restrictions were so awful. I suspect that once this library shows up in DoD projects that even bash will wind up becoming replaced / neutered