sdyates has asked for the wisdom of the Perl Monks concerning the following question:
I have not been able to find a utility that can do this and am not sure of the best approch. I want to be able to grep all sockets attached to a specific port:
easy with a system(): first nbtstat or netstat to grab a socket report, then grep the socket report based on a given port. However, I am not sure how to kill the socket. netstat does not appear to support this.
Has anyone had any experience with forcing the close of a socket before?
Are there any pitfalls to this?
Should I be trying something else?
Thanks,
Simon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CLOSE-WAIT sockets
by beernuts (Pilgrim) on Apr 02, 2002 at 02:35 UTC | |
|
Re: CLOSE-WAIT sockets
by jepri (Parson) on Apr 01, 2002 at 22:48 UTC | |
|
Re: CLOSE-WAIT sockets
by xeh007 (Sexton) on Apr 02, 2002 at 02:11 UTC | |
|
Re: CLOSE-WAIT sockets
by traveler (Parson) on Apr 03, 2002 at 21:32 UTC |