mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-07 11:45:36 -05:00
23 lines
382 B
Bash
Executable file
23 lines
382 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
PORT=8082
|
|
|
|
./sse_server.exe -p $PORT &
|
|
PID=$!
|
|
|
|
sleep 0.1
|
|
./sse_client.exe -p $PORT --alarm=1 /count | tr -d '\r' || true
|
|
|
|
kill $PID
|
|
echo "success"
|
|
|
|
if [ -x ./sse_server_domains.exe ]; then
|
|
./sse_server_domains.exe -p $PORT &
|
|
PID=$!
|
|
|
|
sleep 0.1
|
|
./sse_client.exe -p $PORT --alarm=1 /count | tr -d '\r' || true
|
|
|
|
kill $PID
|
|
echo "success with domains"
|
|
fi
|