Does Python of a module adapted for scripting command line tasks?
I am interested in something that can issues commands, parse the output, especially as relates to success, failure or progress and send an email depending on the outcome.
Is there some module especially adapted for this?
Try the
subprocessmodule and check some usage examples.