On Mon, Feb 04, 2002 at 03:23:39PM -0600, Mike Barton wrote:
> I must reiterate Jason's point, executing another program like ls from within 
> the MUD is really slow and kind of messy, and some people are pretty anal 
> about wasting cycles.

Not just wasting cycles, it's silly.  (And pointless as originally
coded, since logging in two players at once creates a race...)

> One thing to remember is that all of the shell programs like ls are 
> themselves written in C, so you can usually find the code out there to do 
> what you want without the problems inherent in calling outside programs.

in other words, opendir(3), readdir(3) and some string compares.



Reply via email to