Pid of self

how to get the pid of the currently running ruby process ie itself in
xp.

Hi,

Junkone wrote:

how to get the pid of the currently running ruby process ie itself in
xp.

puts $$
or
puts Process.pid

Regards,

Park H.

Junkone wrote:

p $$