added auto port find
This commit is contained in:
parent
e52190e22b
commit
8651173920
|
@ -132,6 +132,7 @@ def get_pids(port):
|
|||
import subprocess
|
||||
import re
|
||||
|
||||
print('getting pid')
|
||||
command = "sudo lsof -i :%s | awk '{print $2}'" % port
|
||||
pids = subprocess.check_output(command, shell=True)
|
||||
pids = pids.strip()
|
||||
|
|
Loading…
Reference in New Issue