Get socket and pipe name in CentOS

ساخت وبلاگ
چکیده : Basically, I want to get socket and pipe owners starting from a PID located in the /proc/PID/fd/ dir... با عنوان : Get socket and pipe name in CentOS بخوانید :

Basically, I want to get socket and pipe owners starting from a PID located in the /proc/PID/fd/ directory using the "stat" command:

lrwx------ 1 root root 64 dic 23 17:52 0 -> socket:[9790]
l-wx------ 1 root root 64 dic 23 17:52 1 -> /var/log/messages
l-wx------ 1 root root 64 dic 23 17:52 2 -> /var/log/secure
lr-x------ 1 root root 64 dic 23 17:52 3 -> /proc/kmsg
l-wx------ 1 root root 64 dic 23 17:52 4 -> /var/log/maillog
l-wx------ 1 root root 64 dic 23 17:52 5 -> /var/log/cron

How could I use "stat" to get each socket owner when I just have the socket name (socket:[9790]) instead of its symbolic reference (0,1,2...)?

Thanks for your answer!

back soft...
ما را در سایت back soft دنبال می کنید

نویسنده : استخدام کار بازدید : 6 تاريخ : دوشنبه 3 دی 1397 ساعت: 8:25