Mercurial > repo
annotate vpenis.sh @ 172:e3cb8a962c43
<elliott> pastelogs ais523.*sprunge\.us
author | HackBot |
---|---|
date | Wed, 04 Apr 2012 03:26:50 +0000 |
parents | 38cb827194d6 |
children |
rev | line source |
---|---|
135 | 1 #!/bin/sh |
2 echo `uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}';free|grep '^Mem'|awk '{print $3"/1024/3+"}'; df -P -k -x nfs | grep -v 1k | awk '{if ($1 ~ "/dev/(scsi|sd)"){ s+= $2} s+= $2;} END {print s/1024/50"/15+70";}'`|bc|sed 's/\(.$\)/.\1cm/' |