memo

memo dayo.

uptimeとfreeを記録するバッチ

#!/bin/sh

str=''

str=$str`date +"%Y%m%d,%H%M"`
str=$str","
str=$str`uptime | awk -F"load average:" '{print $2}' | tr -d " "`
str=$str","
str=$str`free -m | grep "buffers/cache:" | awk '{print $3","$4}'`
str=$str"\n"

echo -ne $str
広告を非表示にする