Executing CLI commands / shell scripts / external programs in Python is easy.
Use subprocess.run
Since Python 3.5 (subprocess.call
for earlier versions), subprocess.run
is the recommended way to execute external shell scripts.
|
|
Executing CLI commands / shell scripts / external programs in Python is easy.
subprocess.run
Since Python 3.5 (subprocess.call
for earlier versions), subprocess.run
is the recommended way to execute external shell scripts.
|
|