feat: fin du projet ?
This commit is contained in:
parent
1bb77b7ec1
commit
0432661aeb
16
distrib.py
16
distrib.py
|
@ -16,14 +16,14 @@ while len(result) > 0:
|
||||||
print(cmd)
|
print(cmd)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
i = 0
|
# i = 0
|
||||||
while len(result) > 0:
|
# while len(result) > 0:
|
||||||
knap = result.pop()[:-4]
|
# knap = result.pop()[:-4]
|
||||||
victime = machines[i % len(machines)]
|
# victime = machines[i % len(machines)]
|
||||||
i+=1
|
# i+=1
|
||||||
cmd = f"""ssh lfainsin@{victime} -o "ConnectTimeout 3" -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "cd 2A/RO/tp2/ && tmux new-session -d 'glpsol --lp {knap}.lp -o {knap}.sol'" """
|
# cmd = f"""ssh lfainsin@{victime} -o "ConnectTimeout 3" -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "cd 2A/RO/tp2/ && tmux new-session -d 'glpsol --lp {knap}.lp -o {knap}.sol'" """
|
||||||
print(cmd)
|
# print(cmd)
|
||||||
os.system(cmd)
|
# os.system(cmd)
|
||||||
|
|
||||||
# for machine in machines:
|
# for machine in machines:
|
||||||
# os.system(f"""ssh lfainsin@{machine} -o "ConnectTimeout 3" -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "tmux kill-server" """)
|
# os.system(f"""ssh lfainsin@{machine} -o "ConnectTimeout 3" -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "tmux kill-server" """)
|
||||||
|
|
35065
notebook.ipynb
35065
notebook.ipynb
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue