added auto port find

This commit is contained in:
William Falcon
2019-07-24 14:57:54 -04:00
parent afa25a26d9
commit e3f01388df
+1 -1
View File
@@ -135,7 +135,7 @@ if __name__ == '__main__':
import re
print('getting pid')
command = "sudo lsof -i :%s | awk '{print $2}'" % 12910
command = "lsof -i :%s | awk '{print $2}'" % 12910
pids = subprocess.check_output(command, shell=True)
pids = pids.strip()
print(pids)