Re: unique IDs for connections to ipsvd programs

Charlie Brady <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
On Wed, 7 Nov 2007, Lasse Kliemann wrote:

>>> programs. How about generating a unique ID for each connection and passing
>>> this ID on to 'prog' via an environment variable and also writing the ID
>>> to the log?
>>
>> Are PIDs not "unique enough" for log correlation purposes?
>
> If one has a rough estimate at which time the connection in question took
> place, then perhaps. But not given that, I find PIDs not unique enough.
>
> Actually, I use PIDs for that purpose right now (in combination with the
> client port number), and I find the solution unsatisfactory (although
> sufficient for the moment).

OK.

You don't need a modification to tcpsvd to do what you want, however. You 
can write 'uuid', which generates a uuid, puts in in an environment 
variable, prints a message, then execs the rest of its command line 
arguments. Then instead of having 'prog ...' in your run script, you have 
'uuid prog ...'.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.