zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <zefram@dcs.warwick.ac.uk>
To: jf@ugcs.caltech.edu (Joe Fouche)
Cc: zsh-workers@math.gatech.edu
Subject: Re: process watching?
Date: Mon, 23 Jun 1997 22:03:49 +0100 (BST)	[thread overview]
Message-ID: <20546.199706232103@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <19970622151255.11609@helix.caltech.edu> from "Joe Fouche" at Jun 22, 97 03:12:55 pm

Joe Fouche wrote:
>A few times lately, I've had need of a way to watch for a certain process to
>exit. I think it'd be a nice addition to zsh. For example, suppose I want to
>be notified when the process "foo" terminates.  I'd like to be able to do
>
>% watch $(pidof foo)
>
>and continue about my business, and later zsh would say something like
>
>foo exited at 8:10AM.
>%
>
>Is this feasible? :)

Very feasible, in much the same way as the current $WATCH system, and I
for one would find it useful.  Perhaps you'd like to write it as a module?
All the necessary hooks already exist -- look at the sched module to
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.)

(I would implement this tonight, but I'm very busy with real life
right now.)

-zefram


  reply	other threads:[~1997-06-23 21:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-22 22:12 Joe Fouche
1997-06-23 21:03 ` Zefram [this message]
1997-06-23 22:22   ` Zoltan T. Hidvegi
1997-06-24 15:58     ` Zefram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20546.199706232103@stone.dcs.warwick.ac.uk \
    --to=zefram@dcs.warwick.ac.uk \
    --cc=jf@ugcs.caltech.edu \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).