topical media & game development

talk show tell print

basic-shell-12-load2mrtg.sh / sh



  #!/bin/sh
  # Gets system load average.
  
  stats=`uptime | cut -d',' -f2,3`
  set stats  ; load=$5
  
  users=$1
  
  echo load
  echo users
  
  echo `uptime`
  echo `hostname`
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.