Merge pull request #235 from Francesco149/eeeeeeeeeeeeeeeeeeeeeeee

e as a service
This commit is contained in:
LinuxMercedes 2018-12-08 17:05:08 -06:00 committed by GitHub
commit f065881ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
eaas.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# e as a service
# usage:
# ./eaas.sh
# xdg-open http://127.0.0.1:3333
while true; do
( printf "HTTP/1.0 200 OK\r\n\r\n<html><body>" && yes e ) |
nc -w 1 -l -p 3333
done