Created
February 28, 2019 07:58
-
-
Save xsthunder/bb829cada15336e3f5ec86eef435e4bf to your computer and use it in GitHub Desktop.
Calling an external command in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stackoverflow.com/questions/89228/calling-an-external-command-in-python | |
import subprocess | |
subprocess.run(["ls", "-l"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment