Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Debug kill-mxnet.py command can't kill remote processes (#5646)
Browse files Browse the repository at this point in the history
  • Loading branch information
kindruth authored and mli committed Mar 31, 2017
1 parent 53765f1 commit a5fd6f8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/kill-mxnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
for host in f:
if ':' in host:
host = host[:host.index(':')]
print host
subprocess.Popen(["ssh", "%s" % host, kill_cmd],
shell=False,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
print "Done killing"
print host
subprocess.Popen(["ssh", "-oStrictHostKeyChecking=no", "%s" % host, kill_cmd],
shell=False,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
print "Done killing"

# Kill program on local machine
os.system(kill_cmd)

0 comments on commit a5fd6f8

Please sign in to comment.