fix: merge moi faire du 💩
This commit is contained in:
commit
a74b1027f1
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,4 @@
|
||||||
solveurGLPK/
|
solveurGLPK/
|
||||||
|
*.lp
|
||||||
|
*.stdout
|
||||||
|
*.sol
|
||||||
|
|
14
distrib.py
14
distrib.py
|
@ -12,6 +12,18 @@ 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" "cd 2A/RO/tp2/ && tmux new-session -d 'julia test.jl {knap}.opb > {knap}.stdout'" """
|
cmd = f"""ssh lfainsin@{victime} -o "ConnectTimeout 3" -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "cd 2A/RO/tp2/ && tmux new-session -d 'julia test.jl {knap}.opb > {knap}.stdout'" """
|
||||||
print(cmd)
|
print(cmd)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
|
i = 0
|
||||||
|
while len(result) > 0:
|
||||||
|
knap = result.pop()[:-4]
|
||||||
|
victime = machines[i % len(machines)]
|
||||||
|
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'" """
|
||||||
|
print(cmd)
|
||||||
|
os.system(cmd)
|
||||||
|
|
||||||
|
# for machine in machines:
|
||||||
|
# os.system(f"""ssh lfainsin@{machine} -o "ConnectTimeout 3" -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "tmux kill-server" """)
|
||||||
|
|
Loading…
Reference in a new issue