prozess zum port?
Florian Lohoff
flo at mini.gt.owl.de
Mon Dec 14 11:54:31 CET 1998
On Sun, Dec 13, 1998 at 06:36:31PM +0100, Ingo Luetkebohle wrote:
> Wie bekomm ich raus, welcher Prozess einen Socket lesend geƶffnet hat?
>
lsof ?
kommt z.b. sowas bei raus ...
portmap 81 daemon 3u inet 0x03a0d810 0t0 UDP *:sunrpc
portmap 81 daemon 4u inet 0x03a0dc0c 0t0 TCP *:sunrpc (LISTEN)
inetd 2844 root 4u inet 0x037e4018 0t0 TCP *:telnet (LISTEN)
inetd 2844 root 5u inet 0x037e4c0c 0t0 TCP *:auth (LISTEN)
inetd 2844 root 6u inet 0x0375c810 0t0 UDP *:tftp
inetd 2844 root 7u inet 0x0375cc0c 0t0 TCP *:smtp (LISTEN)
inetd 2844 root 8u inet 0x03742018 0t0 TCP *:ppp (LISTEN)
xdm 2918 root 4u inet 0x03294c0c 0t0 UDP *:xdmcp
xdm 2918 root 5u inet 0x031de018 0t0 TCP *:1024 (LISTEN)
Das mit dem "lesend" ist ein wenig schwierig al die weil ich im moment
mal gerade nicht genau weiss ob man ueberhaupt einen socket
NUR lesend oeffnen kann ...
TCP Sockets sind AFAIK immer bidirektional und UDP sowieso.
Flo
--
Florian Lohoff flo at mini.gt.owl.de +49-5241-470566
Good, Fast, Cheap: Pick any two (you can't have all three). (RFC 1925)
Look at http://www.linux-magazin.de/cluster this comes quite close.
More information about the Linux
mailing list