From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] killing rogue processes In-Reply-To: Your message of "Fri, 19 Dec 2003 07:31:13 MST." <9e1ece40f542f2a019c3a7ba9ec1b56e@plan9.ucalgary.ca> From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <56621.1071786676.1@t40.swtch.com> Message-Id: Date: Thu, 18 Dec 2003 17:31:16 -0500 Topicbox-Message-UUID: acae0ba6-eacc-11e9-9e20-41e7f4b1d025 > > i don't remember the one you sent to 9trouble, > > but it seems trivial enough not to warrant a > > separate command: > > > > #!/bin/rc > > cd /proc > > for (i in *) > > cat $i/fd | sed s/^/$i' '/ > > it's written in C for the same reason 'ps' is, whatever that may be :) ps does non-trivial reformatting of the /proc files.