테스트
-
curl 부하주기.IT/shell 2021. 2. 8. 16:39
#!/bin/bash while :; do msgid=$(date '+%Y%m%d%H%M%S') msgid=$msgid$((RANDOM % 999 + 1)) lteseq=$(date '+%Y%m%d%H%M%S') lteseq=$lteseq$((RANDOM % 999 + 1)) sendTime=$(date '+%Y%m%d%H%M%S') echo $msgid echo $lteseq printf -v data '{"msgId": "%s"}' $msgid $lteseq $sendTime curl -X POST http://127.0.0.1:48101/MF -H "Content-Type:application/json" -d '{"event": "VV"}' -i done