Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: process watching?
- X-seq: zsh-workers 3295
- From: <hzoli@xxxxxxxxxxxx> (Zoltan T. Hidvegi)
- To: zefram@xxxxxxxxxxxxxxxxx (Zefram)
- Subject: Re: process watching?
- Date: Mon, 23 Jun 1997 18:22:18 -0400 (EDT)
- Cc: jf@xxxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <20546.199706232103@xxxxxxxxxxxxxxxxxxxxxxx> from Zefram at "Jun 23, 97 10:03:49 pm"
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