From e3f01388dfc42994da3a782336617f479c4a5b6b Mon Sep 17 00:00:00 2001 From: William Falcon Date: Wed, 24 Jul 2019 14:57:54 -0400 Subject: [PATCH] added auto port find --- tests/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/debug.py b/tests/debug.py index bb71bc97..4e2675b5 100644 --- a/tests/debug.py +++ b/tests/debug.py @@ -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)