#!/bin/bash
source $HOME/.gamerc

for ip in $(cat /etc/hosts | sed -n '/\# PLEASE/,/# DO/p' | egrep 'CTRL|GAMEDB|WZ|ACCOUNTDB|LOGIN' | awk -F" " '{print $1}'); do 
	echo ${ip} | colorize blue black
	print_servername ${ip} | colorize yellow black
	ssh ${ip} "cd ~/servers*/Data/db/; ls -hltra s_rootcmds.ini"
done
