Thanks vfb. I'm almost there, you are correct, there is no need for "-g" command. At the moment the script looks like below. The game starts but when trying to play a turn it just closes the gamewindow. It also says "send, broken pipe"
Code:
#!/bin/bash
# Tällä käynnistellään dqotonen domi hostaukset
# jee
GAME="rivers"
MAP="Rivers.map"
ERA=3
MOD="CBcomplete_1.6.dm"
BUP={rsync -a /home/dom/dominions3/savedgames/* /backup/}
AID="0"
START=5
PORT="2222"
DOM="/home/dom/dominions3/dom3"
$DOM -S -T --port $PORT $GAME --era $ERA --mapfile $MAP \
-q --indepstr 9 --uploadmaxp $START --diffai $AID --enablemod $MOD --postexec $BUP