Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: process watching?



Zefram wrote:
> see how it runs code before each prompt.  (Of course, it could be done
> in user code, using $PERIODIC, but that's a rather messy mechanism and
> not entirely appropriate.)

Why?  What's wrong with the user code implementation?  kill -0 pid can be
used to test for the presence of the process.  It can be put either to
precmd or to periodic (periodic is the function name which is executed in
every $PERIOD seconds, just before a prompt).

Zoltan



Messages sorted by: Reverse Date, Date, Thread, Author