KnowledgeBase

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
import os
def system(x):
print x
os.system(x)
for day in ['2014-12-10', '2014-12-11', '2014-12-12', '2014-12-13', '2014-12-14', '2014-12-15',
'2014-12-16', '2014-12-17', '2014-12-18', '2014-12-19', '2014-12-20', '2014-12-21',
'2014-12-22', '2014-12-23', '2014-12-24', '2014-12-25', '2014-12-26', '2014-12-27',
'2014-12-28']:
system(
'client.py --cmd "umworld doit run KnowledgeBase --num-process 4 --day {day}"'
'--task-name "doit knowledge_base {day}"'.format(day=day)
)