diff options
-rwxr-xr-x | encode_html.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encode_html.sh b/encode_html.sh index 26f6677..50da6cc 100755 --- a/encode_html.sh +++ b/encode_html.sh @@ -4,7 +4,7 @@ scp index.html prometheus.ethernal.org:public_html/arduino.html # Fetch HTML with appropriate Accept-Encoding: header -> save to raw file -echo -ne "GET /~mjb/arduino.html HTTP/1.0\nAccept-Encoding: gzip\n\n" | nc www.ethernal.org 80 > index_gzip.raw +/bin/echo -ne "GET /~mjb/arduino.html HTTP/1.0\nAccept-Encoding: gzip\n\n" | nc www.ethernal.org 80 > index_gzip.raw # Process Raw file - delete headers and blank line -> save to raw gzip dat file sed -e '0,/^\r$/d' index_gzip.raw > index_gzip.dat |