bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notifying other processes of bash events.


From: Paul Jarc
Subject: Re: Notifying other processes of bash events.
Date: Fri, 21 Dec 2001 00:04:38 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

address@hidden (Mathew Johnston) wrote:
> Consider 3 bash processes (1, 2, 3), nested in a tree with a parent
> of P. Say, P->1->2->3. I P to know what the current working
> directory of the deepest bash process is. So, when 3 starts up, it
> needs to send an event somehow to P describing it's pwd; when 3 does
> a change of pwd, it needs to notify P also. When 3 exists, 2 must
> notify P to say that the process exited, and describe it's pwd.

Will 1 be active while 2 is running, or 2 active while 3 is running?
If not, PROMPT_COMMAND could work, if you don't mind redundant
notifications.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]