On Tue, Jun 19, 2007 at 10:53:16AM -0600, andrey mirtchovski wrote: > why is ps written in C when it may as well be written in rc? Because ps is a much more complex program and used much more extensively. Aside from having quite a few options to process, the work that it does would be much more expensive to do in rc, although a fairly speedy implementation could probably be written without much trouble. But your lsof is equivalent to about 3 lines of rc script, done almost entirely by programs written in C, and is much clearer. I doubt that there's any noteworthy difference in speed, or that it would matter much if there were, so I just can't imagine why you'd want to write it in C. -- Kris Maglione The worse your line is tangled, the better is the fishing around you.