added auto port find

This commit is contained in:
William Falcon 2019-07-24 14:55:26 -04:00
parent e52190e22b
commit 8651173920
1 changed files with 1 additions and 0 deletions

View File

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