summaryrefslogtreecommitdiff
path: root/example-scripts/control-server/generate-cut-list.py
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-01-24 10:33:07 +0100
committerMaZderMind <git@mazdermind.de>2016-01-24 10:33:07 +0100
commitae67feeef615bf71ea0816874503d3c888c585f6 (patch)
tree087823afd43c397f2fcbeabe5f42979dece254e9 /example-scripts/control-server/generate-cut-list.py
parent0cb0f1f16320c4b0314c5b81c91f022330e74642 (diff)
parent4af606227a7ad9887bf2bb393b98d1099e5105bf (diff)
Merge branch 'CarlFK-cutlist-flush'
Diffstat (limited to 'example-scripts/control-server/generate-cut-list.py')
-rwxr-xr-xexample-scripts/control-server/generate-cut-list.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/example-scripts/control-server/generate-cut-list.py b/example-scripts/control-server/generate-cut-list.py
index 305ef83..59519c1 100755
--- a/example-scripts/control-server/generate-cut-list.py
+++ b/example-scripts/control-server/generate-cut-list.py
@@ -1,6 +1,7 @@
#!/usr/bin/python3
import socket
import datetime
+import sys
host = 'localhost'
port = 9999
@@ -17,3 +18,4 @@ for line in fd:
if signal == 'message' and args[0] == 'cut':
ts = datetime.datetime.now().strftime("%Y-%m-%d/%H_%M_%S")
print(ts)
+ sys.stdout.flush()