OS: Sun Solaris
How to know which process id from netstat command?
Thank you.
OS: Sun Solaris
How to know which process id from netstat command?
Thank you.
You can't. If you want to know the process id that is using a particular port, use lsof.
[
you can use ps -ef PID not netstat command
but netsat -an is useful command for detail inf. about port status etc.
Ali
QUOTE=KhawHL]OS: Sun Solaris
How to know which process id from netstat command?
Thank you.
[/quote]
I think I'm running into the same situation as KhawHL. I need to tie a port number that a process is listening on and identify that process.
netstat gives me ports that it's listening on, and I see suspicious ports.
ps -ef gives me process names and their PIDs.
lsof doesn't work on Sol9.
Is there another way to map a PID to port on Sol9?