Commit a356c7c2 authored by zauberstuhl's avatar zauberstuhl
Browse files

Fix openbsd netcat command

parent ec14a4df
...@@ -19,7 +19,7 @@ $psql -c 'create table if not exists testtable(id serial primary key);' || exit ...@@ -19,7 +19,7 @@ $psql -c 'create table if not exists testtable(id serial primary key);' || exit
while true; do while true; do
cnt=$(eval $psqlCount |head -3 |tail -n 1 |tr -d '[:space:]') cnt=$(eval $psqlCount |head -3 |tail -n 1 |tr -d '[:space:]')
req=$(echo -e "HTTP/1.1 200 OK\n\n$cnt" | nc -c -l -p $PORT 0.0.0.0) req=$(echo $cnt |nc -l -p $PORT -q1)
if [[ $req =~ '/add' ]]; then if [[ $req =~ '/add' ]]; then
eval $psqlAdd eval $psqlAdd
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment