#!/bin/bash

if [ ! -z "$1" ]; then
  sendscript $1 <<< "cat ~/servers*/MissionServer*/Test* | egrep -v [Dd]isconnected | grep connected | grep ,Zone"
else
  sendscript allgamedb <<< "cat ~/servers*/MissionServer*/Test* | egrep -v [Dd]isconnected | grep connected | grep ,Zone"
fi
