diff options
Diffstat (limited to 'example-scripts/control-server')
-rwxr-xr-x | example-scripts/control-server/generate-cut-list.py | 2 |
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() |