Hi,
I am trying to retrieve the port details by the process id as like below,
but it fails.
my $port = `ss -l -p -n | grep $pid| grep -v grep 2>&1`;

When I manually issue the command with the pid, it yields the output.
Will you please suggest/correct me.Thanks.

Reply via email to