Skip to content

Instantly share code, notes, and snippets.

View mitgr81's full-sized avatar

Chris McGraw mitgr81

  • SONIFI Solutions
  • Sioux Falls, SD
View GitHub Profile
@mitgr81
mitgr81 / Output
Last active October 6, 2017 07:15 — forked from DazWorrall/Output
in upload handler
in file close
..
----------------------------------------------------------------------
Ran 2 tests in 0.021s
OK
#!/usr/bin/python
# Equivalent of "tail -f" as a webpage using websocket
# Usage: webtail.py PORT FILENAME
# Tested with tornado 2.1
# Thanks to Thomas Pelletier for it's great introduction to tornado+websocket
# http://thomas.pelletier.im/2010/08/websocket-tornado-redis/
import tornado.httpserver