mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
added auto port find
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user