Created
March 13, 2013 13:21
-
-
Save farito/5151973 to your computer and use it in GitHub Desktop.
Scripts para Stress Test Streaming Publications
This file contains hidden or 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
/* ScriptApp.sh */ | |
#!/bin/bash | |
END=100 | |
C=1 | |
while [[ $C -le $END ]]; do | |
./scriptAp.sh & | |
((C = C + 1)) | |
echo | |
done | |
/* ScriptLoop.sh */ | |
#!/bin/bash | |
URL='TU URL' | |
END=100 | |
C=1 | |
while [[ $C -le $END ]]; do | |
curl -X POST -H "Content-Type:application/json" -d 'MENSAGE JSON' $URL >> result.log | |
((C = C + 1)) | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment