4 ms·
You're right about people needing to understand bash and Unix commands - I've seen two 20+ line Perl scripts that run the equivalent of 'date -I' and 'nc' respe
by nailer 17y ago
You're right about people needing to understand bash and Unix commands - I've seen two 20+ line Perl scripts that run the equivalent of 'date -I' and 'nc' respectively.
That said, I believe bash is somewhat limited for system administration - which I know is very odd amongst system administrators - but please let me explain why.
Using the shell on a Linux based OS in 2009, you miss out on:
* filesystem events (inotify)
* hardware events (dbus)
* config for programs with tree structured configuration (lxml)
* config for programs with sqlite based configuration
* RPM / yum beyond what their command line apps expose (and perhaps dpkg/apt too, but I need to investigate this further).
...as the commands / shell function libraries to handle these are often immature compared to the equivalent APIs. As a result, you get sysadmins causing unnecessary load by polling a file repeatedly at intervals (eg, via a cron job) rather than letting the kernel tell them when their file has changed.
I'm hopefully giving a talk about using richer languages for system administration at PyCon 2010 - I'd love to hear any thoughts or opinions on these matters fron HN readers.