Easiest method is using the subprocess module. If you're using Py3.5+ (you should be) see:
docs.python.org/3/library/sub…
Oops, just saw your addition of "in realtime", you're going to want to use Popen. See the docs.
Easiest method is using the subprocess module. If you're using Py3.5+ (you should be) see:
docs.python.org/3/library/sub…
Oops, just saw your addition of "in realtime", you're going to want to use Popen. See the docs.