Re: using tell with proc. serial numb. in OS X
Re: using tell with proc. serial numb. in OS X
- Subject: Re: using tell with proc. serial numb. in OS X
- From: John W Baxter <email@hidden>
- Date: Wed, 14 Nov 2001 09:41:24 -0800
At 2:18 -0800 11/14/2001, Neal A. Crocker wrote:
>
Identifying which of the process running "widgetd" to send to would
>
depend on the purpose for which events were being sent and which
>
script was sending them.
The typical Unix-ish way is to store the pid as a digit string in a file in
an agreed place with an agreed name. These tend to be world-readable, but
that varies. And they sometimes contain more than the pid...I work with
one program which maintains the file (of child processes) as kill commands,
so that it can just be executed to kill everything.
Have a look in /var/run, which appears to be FreeBSD/Mac OS X's "agreed place."
Presumably, a special case of widgetd would store its pid in a file with a
special agreed name, and would have found out it was special by the way it
was invoked.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA