#!/bin/bash

source ~/.gamerc

mkdir -p ~/io_log/
cd ~/io_log/
mkdir -p $(/bin/date +%Y%m%d)

~/bin/sendscript allall nosave nohostname <<< 'source ~/.gamerc;(cat /proc/loadavg;ps -Ao pid,lstart,pcpu,s,cmd f|grep " \./[A-Z][a-z]\+Server";free -m;top -b|head|grep Cpu)|sed "s/.*/$HOST_NAME &/g"' > ~/io_log/$(/bin/date +%Y%m%d)/$(/bin/date +%Y%m%dT%H%M) 2>&1
