The way that is usually handled is when the process starts, you record the pid in a file in /var/run or /tmp. Then you grab the pid from that file when you need to check it.
- Ryan On Wed, Jul 23, 2003 at 09:27:36AM +0100, Colin Watson wrote: > On Sat, Jul 19, 2003 at 07:07:19PM +0200, [EMAIL PROTECTED] wrote: > > Finally there is the output of "ps ux". I use it to verify the PID of > > the ssh-agent process. For that I take the value found in the second > > column, but I am not sure if "ps ux" will give me that on all/most > > unices. Does anyone on the list know? > > ps is probably the most inconsistent command in the entirety of Unix. > No, 'ps ux' won't work on Unix systems which take most of their heritage > from System V rather than BSD, and there is probably no one set of ps > arguments that will work everywhere. > > Cheers, > > -- > Colin Watson [EMAIL PROTECTED] > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] >
pgp00000.pgp
Description: PGP signature