In "popen stuff" Adrian wrote:
> I recently added the function pipe to my mud and have had one problem
> with it, when it displays things it displays each word one line
> under the word before it. Any ideas how to fix that?

  What Amaross said, to do it right, but for a quick fix,
other than "ps", the two commands I use most with pipe are:

pipe ls -Ct /home/blades/player

  and:

pipe head -20 /home/blades/player/

  The first I send direct to the mud (using a macro button in zMUD).
The -Ct are flags that control the output (type 'man pipe' in your
shell). "C" makes it display columns, "t" makes it display them by
time, so the last to leave is listed first. That is, it shows all
my players in the order they disconnected. Everyone above my name
has been on since I last left. I found this real handy in the early
stages, for keeping track of Builders and such.

  The second jumps into my output window, so I can add a player's name
on the fly. The -20 makes "head" show the first 20 lines of the Pfile.
I rearranged my Pfiles so the first 20 lines were the most interesting.
In particular, I added a "Laston:" right near the top.


Sandi                            

             "SEGFAULT?!?  I have not yet begun to code!"

[EMAIL PROTECTED]                           blades.inetsolve.com 3333


Reply via email to