From b57c023647eb0e3c0666d8511e3ca3b77363c642 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sat, 11 Feb 2017 12:03:28 +0100 Subject: [PATCH] Added the start of a script for getting load average. (Only Linux). --- status/load.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 status/load.py diff --git a/status/load.py b/status/load.py new file mode 100644 index 0000000..6686f06 --- /dev/null +++ b/status/load.py @@ -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() \ No newline at end of file