blob: ef2b6337fb5132ce7a642a36452cebe38619d2a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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))
|