Linked by Eugenia Loli on Fri 14th Sep 2007 23:08 UTC
Thread beginning with comment 271436
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
"bash,sed/awk,perl,C fits my bill :-)"
Sidenote: Don't declare bash as long as you're not using special bash features that are not present in standard sh. sh is the most basal common sense in UNIX scripting. bas isn't (allthough it's very famous in Linux).
Furthermore, I agree to the command set above for most administration tasks that need to be automated. sed and awk are very powerfull, especially when you want to implement "small" tasks with few commands. On the other hand, I like using Python and Ruby for several tasks, but I never thought seriously about using them intensively for administrative tasks. I'll go out and correct my attitude. :-)





Member since:
2006-09-12
So, install it.
Seriously, how many times per year do you use a PERL one-liner from the command line? 4? Maybe 5 times?
This is not a safe practice in any interpreted language. Better to write those sections using a compiled language, take your choice.
... and about a dozen other languages and tools. Its syntax is certainly the most expansive syntax of any programming language in history. You might think that's a good thing, but try picking up a piece of code someone else wrote in Perl, and maintaining it.
We have been installing Python on all our Unix boxes for about 5 years now, and I think it was a great move.
ksh93, Python, C. That's all you need for every Unix administrative programming project. And the C is only needed when you need to wrapper a system call into a Python function. They're used in descending order of frequency: ksh93 - 70%, Python - 25%, C - 5%.