From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29372 invoked from network); 23 Jun 1997 22:24:48 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 23 Jun 1997 22:24:48 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA16405; Mon, 23 Jun 1997 18:18:24 -0400 (EDT) Resent-Date: Mon, 23 Jun 1997 18:18:24 -0400 (EDT) From: (Zoltan T. Hidvegi) Message-Id: <9706232222.AA20208@belgium.fishkill.ibm.com> Subject: Re: process watching? In-Reply-To: <20546.199706232103@stone.dcs.warwick.ac.uk> from Zefram at "Jun 23, 97 10:03:49 pm" To: zefram@dcs.warwick.ac.uk (Zefram) Date: Mon, 23 Jun 1997 18:22:18 -0400 (EDT) Cc: jf@ugcs.caltech.edu, zsh-workers@math.gatech.edu X-Mailer: ELM [version 2.4ME+ PL31H (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"hYt8X1.0.F04.lOlhp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3295 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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