Added the start of a script for getting load average. (Only Linux).

This commit is contained in:
2017-02-11 12:03:28 +01:00
parent 936cc0a26f
commit b57c023647

10
status/load.py Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python3
from subprocess import check_output
from re import findall
def load():
arpOutput = check_output("sudo arp-scan -l", shell=True)
print(findall('[0-9]{1,2}[\.][0-9]{2}'))
if __name__ == '__main__':
load()