aboutsummaryrefslogtreecommitdiff
path: root/src/log_shit.py
diff options
context:
space:
mode:
authorspv <spv@spv.sh>2025-07-28 21:06:08 -0400
committerspv <spv@spv.sh>2025-07-28 21:06:08 -0400
commitc5aa5e006492825548a6d07b50ee401170cd2469 (patch)
tree40193630c2f7b529e5e695ce755c683c0419bd51 /src/log_shit.py
optracker9000 activate
Diffstat (limited to 'src/log_shit.py')
-rw-r--r--src/log_shit.py21
1 files changed, 21 insertions, 0 deletions
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