Skip to content

Instantly share code, notes, and snippets.

View GreenXenith's full-sized avatar
🛠️
breaking things in style

Alex GreenXenith

🛠️
breaking things in style
View GitHub Profile
@GreenXenith
GreenXenith / loadtester.sh
Created February 9, 2019 22:02
Minetest Server Tester
#!/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