If you have libcod already, why not go with sendgameservercommand instead of the old executestring?