Skip to content

Instantly share code, notes, and snippets.

@modeverv
Created June 7, 2020 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save modeverv/a1affde0c5b2d6b1249b23d684733699 to your computer and use it in GitHub Desktop.
Save modeverv/a1affde0c5b2d6b1249b23d684733699 to your computer and use it in GitHub Desktop.
script of TEMPer
#!/usr/bin/env python3
import subprocess
from subprocess import check_output
out = check_output("sudo tempered 2> /dev/null | awk 'NR==1' | cut -b 29-33", shell=True).decode('utf-8').strip()
print(out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment