As a system administrator, you run across numerous challenges and problems. Managing users, disk space, processes, devices, and backups can cause many system administrators to lose their hair, good humor, or sanity. Shell scripts can help, but they often have frustrating limitations. This is where a full-featured scripting language, such as Python, can turn a tedious task into an easy one. Python is a scripting language that looks like it was made for system administrators.
Permalink for comment 271474
To read all comments associated with this story, please click here.
While I agree that Python is not a replacement for the shell, your post show the shell's problem: first there is not one shell, but several and the 'script shells' depends on a bunch of tools, all of which have variants depending on the version, OS, etc.
Most script shells are *brittle*, use them on another shell, OS, on file with spaces or weird characters and they break.
What I would like to see is a bunch of tools written in Ruby/Python which would send struct/hash through the pipe: you would have the flexibility of shell and the robustness induced by passing structures/hash around instead of 'hard to parse' text (and if you have to take into account files with weird characters in them, it's really not so easy).
Member since:
2005-07-06
While I agree that Python is not a replacement for the shell, your post show the shell's problem: first there is not one shell, but several and the 'script shells' depends on a bunch of tools, all of which have variants depending on the version, OS, etc.
Most script shells are *brittle*, use them on another shell, OS, on file with spaces or weird characters and they break.
What I would like to see is a bunch of tools written in Ruby/Python which would send struct/hash through the pipe: you would have the flexibility of shell and the robustness induced by passing structures/hash around instead of 'hard to parse' text (and if you have to take into account files with weird characters in them, it's really not so easy).