feat: fin du projet ?

This commit is contained in:
Laureηt 2021-12-09 16:43:14 +01:00
parent 1bb77b7ec1
commit 0432661aeb
2 changed files with 33973 additions and 1114 deletions

View file

@ -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" """)

File diff suppressed because one or more lines are too long