diff options
author | Franklin Wei <me@fwei.tk> | 2018-07-20 17:15:02 +0000 |
---|---|---|
committer | Franklin Wei <me@fwei.tk> | 2018-07-20 17:15:02 +0000 |
commit | db7be6b17ef18bb0f0263992a1f38959be5012dc (patch) | |
tree | 97f9d3e9a4141de053a743ebdcaca474bc53f8aa /prepopulate2.sh | |
parent | 4ef7acdbe514cd7e13c62ff22d8b0eb8c04cce1f (diff) | |
download | csaa-db7be6b17ef18bb0f0263992a1f38959be5012dc.zip csaa-db7be6b17ef18bb0f0263992a1f38959be5012dc.tar.gz csaa-db7be6b17ef18bb0f0263992a1f38959be5012dc.tar.bz2 csaa-db7be6b17ef18bb0f0263992a1f38959be5012dc.tar.xz |
Add scripts for testing with prepopulated database
Diffstat (limited to 'prepopulate2.sh')
-rwxr-xr-x | prepopulate2.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/prepopulate2.sh b/prepopulate2.sh index dd1b8bf..22d471e 100755 --- a/prepopulate2.sh +++ b/prepopulate2.sh @@ -2,9 +2,14 @@ mkdir -p databases -for i in `seq 10 25` +pids="" +for i in `seq 10 12` do echo $i rm -f socket - ./server $i databases/csaa_$i.db > /dev/null + ./server $i databases/csaa_$i.db > /dev/null & + + pids=$pids" "$! done + +wait $pids |