functions.sh
#!/bin/bash
function execute() {
host="$1"
command="$2"
if [[ $host = "localhost" ]]; then
eval $command
else
while ! java -jar adapters/RemoteExecutor/target/RemoteExecutor-1.0.jar --send="caching-approaches-comparison $command" --host=$host --port=5000; do sleep 5; done
fi
}