topical media & game development

talk show tell print

basic-shell-12-mem2mrtg.sh / sh



  #!/bin/sh
  # Gets system memory usage.
  # Active memory, free memory. 
  stats=`vmstat -a | tail -1`
  
  set stats  ; echo $6 ; echo $4
  set stats  ; echo $4
  
  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.