#! /bin/sh # # usage: bigeyed # set -euf mkdir -vp /tmp/bigeye cd /tmp/bigeye cleanup() { test -n "$spid" && kill -9 $spid && 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</dev/null 2>/dev/null mv 0000000$frame.jpg index.jpg cat>00000001.html< $hostname's bigeye

$date

ZOMBIECANCER

EOF mv 00000001.html index.html } while blink; do sleep 1 done