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 $$

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs