Try to extract the process ID that is using a given port number from the fuser output as below
$ fuser 9092/tcp
9092/tcp: 5920
Extracting the PID using awk is not happening
$ fuser 9092/tcp | awk -F: '{print $2}'
9092/tcp:
from the extracted PID, I want to do ls -l /proc/5920/exe
like
ls -l /proc/$(fuser 9092/tcp | awk -F: '{print $2}')/exe
Versions of the binary as below:
bash --version # GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
fuser --version # fuser (PSmisc) 22.20