Skip to content

Instantly share code, notes, and snippets.

@xsthunder
Created February 28, 2019 07:58
Show Gist options
  • Save xsthunder/bb829cada15336e3f5ec86eef435e4bf to your computer and use it in GitHub Desktop.
Save xsthunder/bb829cada15336e3f5ec86eef435e4bf to your computer and use it in GitHub Desktop.
Calling an external command in Python
# 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