[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PSID
On Mon, 15 Sep 1997, Yaniv Orenstein wrote:
> how would it be possible to determine which ps id the next program will
> take, for example if i'm loading pppd and i'd like to know what psid
> will or has pppd taken?
>
Look at the highest PSID in /proc/stat then add 1. Then test it.
Note that this is only of theoretical interest unless you can guarantee
that pppd will be the very next process and that no other process will
unexpectedly kick before pppd. What do you need it for anyway?
- yba
EE 77 7F 30 4A 64 2E C5 83 5F E7 49 A6 82 29 BA ~. .~ TclTek Ltd.
=}-------------------------------------------------ooO--U--Ooo-----------{=
- benavrhm@tcltek.co.il - tel: +972.52.670.353, http://www.tcltek.co.il -
- References:
- PSID
- From: Yaniv Orenstein <nuthead@netcom.ca>