This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
spark-art-dashboard/log-provider.sh
Diogo Cordeiro 5930a29cdf Add webserver for log file
Improved charts
2018-09-22 18:22:25 +01:00

6 lines
173 B
Bash
Executable File

#/bin/bash
while true
do
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Length: $(wc -c <top.csv)\r\nAccess-Control-Allow-Origin: *\r\n\r"; cat top.csv; } | nc -v -l -p 4870
done