SimpleEventBuilder/testing/threads/spawn_clients.sh

16 lines
290 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 50 ]
then
./prov.out 1&
else
./prov.out 0&
fi
done
fi