From a9fdeecce59f961a998a3ef7de9b92bbe26d39e7 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Fri, 21 Apr 2023 16:01:34 +1000 Subject: [PATCH] initial scriptlib/py script for python support - stdout_per_second.py basic version --- scriptlib/py/stdout_per_second.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scriptlib/py/stdout_per_second.py diff --git a/scriptlib/py/stdout_per_second.py b/scriptlib/py/stdout_per_second.py new file mode 100644 index 00000000..ddc04572 --- /dev/null +++ b/scriptlib/py/stdout_per_second.py @@ -0,0 +1,8 @@ +#!/usr/bin/python +import time +import sys +while True: + print('.',end='') + sys.stdout.flush() + time.sleep(1) +