SimpleEventBuilder/testing/connection_method/spawn_clients.sh

16 lines
292 B
Bash
Executable File

#!/bin/bash
echo "Usage: $0 host port runNumber numberOfProviders"
if [ $# -eq 1 ]
then
for i in $(seq 1 $1);
do
echo "Spawning provider number $i"
if [ $i -le 2 ]
then
./prov.out 0&
else
./prov.out 1000&
fi
done
fi