Skip to content

Instantly share code, notes, and snippets.

@christianb
Created May 9, 2019 12:36
Show Gist options
  • Save christianb/09436bca64f55b64b0069ec5e880fee7 to your computer and use it in GitHub Desktop.
Save christianb/09436bca64f55b64b0069ec5e880fee7 to your computer and use it in GitHub Desktop.
Usefull python commands
# 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