Advertisement
homer512

periodic

Jun 18th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. #!/usr/bin/python3
  2.  
  3.  
  4. import time
  5. import subprocess
  6.  
  7.  
  8. def main():
  9.     cmd = ('acpi', '-t')
  10.     while True:
  11.         subprocess.call(cmd)
  12.         time.sleep(1)
  13.  
  14.  
  15. if __name__ == '__main__':
  16.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement