|
|
|
|
|
by npongratz
2678 days 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.) |
|
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.