diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/log_shit.py | 21 |
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 |
