Last active
May 3, 2017 18:06
-
-
Save SkamDart/04574756b34d65b0cb26268b775b37f4 to your computer and use it in GitHub Desktop.
Sample bash commands for testing client PUT/GET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fill in n with some integer | |
# run in foreground | |
for i in $(seq 0 n) ; do ./client localhost:4000 PUT file$i.txt file.txt ; done | |
# run in background | |
for i in $(seq 0 n) ; do ./client localhost:4000 PUT file$i.txt file.txt & | |
# diff all files in foreground | |
for i in $(seq 0 n) diff temp_dir/file$i file.txt ; done | |
mkdir tmp | |
for i in $(seq 0 n) ; do ./client localhost:4000 GET file$i.txt tmp/file$i.txt ; done | |
for i in $(seq 0 n) ; do diff file.txt tmp/file$i.txt ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment