[erlang-questions] Recreating a PID from a log file.

fess <>
Wed Oct 29 00:57:35 CET 2008


On Oct 28, 2008, at 4:47 PM, Vik Olliver wrote:

> I have the value of a PID in a log file. It's given as:
>
> <0.24454.8>
>
> How can I stuff it back into a variable?
>
>
> :1> Pid=<0.24454.8>.
> ** 1: syntax error before: 8 **
> :1>

I'm sure this answer will be one of many but, I actually know this  
one. :D

   Pid=list_to_pid("<0.24454.8>").

--fess






More information about the erlang-questions mailing list