From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8574297c804834f9ee3c9801362189f8@plan9.ucalgary.ca> To: 9fans@cse.psu.edu Subject: Re: [9fans] killing rogue processes From: mirtchov@cpsc.ucalgary.ca In-Reply-To: <51cf2c80e2b5a2d9e2f4289d138aa411@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 18 Dec 2003 13:01:55 -0700 Topicbox-Message-UUID: aac16bda-eacc-11e9-9e20-41e7f4b1d025 > netstat -n to get the tcp channel and grep tcp/channel /proc/*/fd. I'm sure > you can do the shell script around that. I have an 'lsof' that lists all file descriptors + process #s.. just grepping for 'tcp' gave me the clues... I've even sent the code+man page to 9trouble, but don't know what happened :)