3 ms·
I've found shell scripting to be superior to other programming languages when the job calls for performing some combination of the following: 1) calling lots o
by npongratz 8y ago
I've found shell scripting to be superior to other programming languages when the job calls for performing some combination of the following:
1) calling lots of commands
2) using lots of pipelines
3) handling exit codes from 1 and 2 for error handling and conditional execution control
4) doing job control for processes and process groups (backgrounding, pausing, foregrounding, sending signals, etc.)
- jasonpeacock 8y agoHave you looked at Plumbumm for Python? It handles everything you just mentioned: https://plumbum.readthedocs.io/en/latest/ https://plumbum.readthedocs.io/en/latest/ There's no reason not to use Python to achieve the same thing, and you get all the benefits of using Python instead of Bash. I'm sure other languages have similar libraries.