Search code examples
pythoncommand-linemoduleautomationcommand

Does Python have a module for scripting command line tasks?


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?


Solution

  • Try the subprocess module and check some usage examples.