From c5aa5e006492825548a6d07b50ee401170cd2469 Mon Sep 17 00:00:00 2001 From: spv Date: Mon, 28 Jul 2025 21:06:08 -0400 Subject: optracker9000 activate --- src/log_shit.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/log_shit.py (limited to 'src/log_shit.py') diff --git a/src/log_shit.py b/src/log_shit.py new file mode 100644 index 0000000..ef2b633 --- /dev/null +++ b/src/log_shit.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 + +import sys, time + +try: + log_file = sys.argv[1] + how_often = float(sys.argv[2]) + time_to_do_it = float(sys.argv[3]) +except: + print("rtfc :P") + sys.exit(-1) + +try: + f = open(log_file, "w") +except: + print("fake file.") + sys.exit(-1) + +print("file: %s\n\ +how often: %f\n\ +how long: %f" % (log_file, how_often, time_to_do_it)) \ No newline at end of file -- cgit v1.2.3