6 sleep_seconds
= int(sys
.argv
[1])
7 num_stores
= int(sys
.argv
[2])
8 file_input
= sys
.argv
[3]
11 input = open(file_input
, "r")
12 except Exception as err
:
13 print(err
, file=sys
.stderr
)
19 InterestingStores
+= 1
21 print("Interesting stores ", InterestingStores
, " sleeping ", sleep_seconds
)
22 time
.sleep(sleep_seconds
)
25 if InterestingStores
> num_stores
:
26 sys
.exit(0) # interesting!
28 sys
.exit(1) # IR isn't interesting