automt: log to ~/.wslog

wsc-master-rebase
cora 2020-11-14 15:54:35 +01:00 committed by Schmappie Eldress
parent cd4aa1220a
commit a0fdbcf45b
1 changed files with 2 additions and 2 deletions

4
automt
View File

@ -4,9 +4,9 @@ pwf=~/.mtpw
srv=$1
usr=$2
pas=$3
logfile=$HOME/.wslog
mtpath=$(dirname $0)
if [ -f $pwf ]; then pas=$(cat $pwf); fi
while true; do
$mtpath/bin/minetest --go --address $srv --name $usr --password $pas
sleep 2
$mtpath/bin/minetest --go --address $srv --name $usr --password $pas --logfile $logfile --color never
done