Created
May 9, 2019 12:36
-
-
Save christianb/09436bca64f55b64b0069ec5e880fee7 to your computer and use it in GitHub Desktop.
Usefull python commands
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
# call system commands from python | |
import subprocess | |
s = "some test" | |
subprocess.call(["shutdown", "-s", "-t", "10", "-c", s]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment