|
|
@@ -31,19 +31,19 @@ def main():
|
|
31
|
31
|
logs = f.readlines()
|
|
32
|
32
|
f.close()
|
|
33
|
33
|
if len(logs) == 6:
|
|
34
|
|
- f = open(file, 'ar')
|
|
|
34
|
+ f = open(file, 'at')
|
|
35
|
35
|
r_time = time.ctime(time.time())
|
|
36
|
36
|
f.write('kpi successfully starts at ' + str(r_time) + '\n')
|
|
37
|
37
|
f.close()
|
|
38
|
38
|
#FIXME: change coordinate_g.py when IMU sensor works and get generic optimizer for DBSCAN
|
|
39
|
|
- os.system('run --rm --name kpi --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/kpi.py ' + id + '/ >> /dev/null')
|
|
40
|
|
- f = open(file, 'ar')
|
|
|
39
|
+ os.system('docker run --rm --name kpi --gpus '"device=1"' -v /dev:/dev -v /home/mc365/sources:/sources -v /hdd:/hdd ellishuntingmoon/mailsys:0.4 python3 /sources/kpi.py ' + id + '/ >> /dev/null')
|
|
|
40
|
+ f = open(file, 'at')
|
|
41
|
41
|
r_time = time.ctime(time.time())
|
|
42
|
42
|
f.write('kpi successfully ends at ' + str(r_time) + '\n')
|
|
43
|
43
|
f.close()
|
|
44
|
44
|
|
|
45
|
|
- transport = paramiko.Transport(('365mc.iptime.org', '63122'))
|
|
46
|
|
- transport.connect(username='mc365', password='tkadbrdhmc1!')
|
|
|
45
|
+ transport = paramiko.Transport(('365mc.iptime.org', 63122))
|
|
|
46
|
+ transport.connect(username='mc365', password='tkadbrdhMC1!')
|
|
47
|
47
|
sftp = paramiko.SFTPClient.from_transport(transport)
|
|
48
|
48
|
#FIXME: send file recursively
|
|
49
|
49
|
for file in file_list:
|