Get Pid of the Current Process in Erlang May 6th, 2012 1 2 3 4 5 6 7 8 9 $ erl Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.8.5 (abort with ^G) 1> import(os). ok 2> os:getpid(). "50615"