This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COUNT=0 | |
while [[ $COUNT -ne 50 ]]; do | |
# Run minetest directly to server and free terminal input (&) | |
./minetest --go --address 123.456.78.9 --port 30000 --name 'LoadTester'$COUNT --password 'password123' & | |
# Record PID | |
PID=$! | |
sleep 0.5 | |
# Get window id | |
while [ "$WID" == "" ]; do |