summaryrefslogtreecommitdiffstats
path: root/modules/bigeye/bigeyed
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bigeye/bigeyed')
-rwxr-xr-xmodules/bigeye/bigeyed6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/bigeye/bigeyed b/modules/bigeye/bigeyed
index c246c872..5aa36210 100755
--- a/modules/bigeye/bigeyed
+++ b/modules/bigeye/bigeyed
@@ -12,8 +12,10 @@ cleanup() {
test -n "$spid" && kill -9 $spid && spid=
}
-#python -m http.server 3 & server=$!
-python -m SimpleHTTPServer 3 & spid=$?
+port=`touch /dev/bigeye 2>/dev/null && rm /dev/bigeye && echo 3 || echo 3333`
+
+#python -m http.server $port & server=$!
+python -m SimpleHTTPServer $port & spid=$?
trap cleanup EXIT HUP INT QUIT TERM
base64 -d>favicon.ico<<EOF