#!/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))