18 lines
270 B
Bash
Executable File
18 lines
270 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z "$1" ]; then
|
|
echo 'Usage: ./fetch-event.sh agentId'
|
|
exit 1
|
|
fi
|
|
|
|
url="http://localhost:8082/dev/agent-event/fetch/$1"
|
|
echo "Listen URL: $url"
|
|
count=0
|
|
|
|
while : ; do
|
|
((++count))
|
|
curl $url
|
|
echo
|
|
echo "[$count] Event fetched."
|
|
done
|