In our automation scripts we often need to launch and monitor external programs to accomplish our desired tasks. When working with Python, we can use the subprocess module to perform said operations. This module is part of the programming language standard library. In this tutorial we will take a quick look at it, and we will learn the basics of its usage.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-launch-external-processes-with-python-and-the-subprocess-module