Skip to content

Instantly share code, notes, and snippets.

@offby1
Created May 23, 2015 17:28
Show Gist options
  • Select an option

  • Save offby1/8ba236b09909e72eaeec to your computer and use it in GitHub Desktop.

Select an option

Save offby1/8ba236b09909e72eaeec to your computer and use it in GitHub Desktop.
>>> f = subprocess.check_output(['/bin/bash', '-c', """ awk '{print $1, $2, $3}' < /proc/loadavg"""]).rstrip()
>>> f
'0.00 0.01 0.05'
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment