r0c/scripts/restart-telnet.sh

3 lines
219 B
Bash
Raw Normal View History

2018-01-07 09:32:51 +00:00
while true; do sleep 0.2; t=$(find ~/dev/r0c/ -type f -name '*.py' -printf '%T@\n' | sort -n | tail -n 1); [[ "x$t" != "x$ot" ]] || continue; ot=$t; printf .; sleep 1; cat ~/dev/r0c/r0c.py; telnet 127.0.0.1 2323; done
2018-01-07 09:29:36 +00:00