$ variable for process id?

J

John W. Long

Hi,

I thought I saw a $ variable for the process id on the list a few days ago
but I can't seem to find it. Could someone please remind me?
 
D

daz

John W. Long said:
Hi,

I thought I saw a $ variable for the process id on the list a few days ago
but I can't seem to find it. Could someone please remind me?


$$ The process number of the program being executed.


?

daz
 
J

Josef 'Jupp' Schugt

Hi!

* John W. Long; 2003-09-30, 12:54 UTC:
Cool! Thanks for the quick response.

An alternative and more readable means of obtaining the PID is:

Process.pid

This brings up the subject of errata for 'Ruby in a Nutshell' - p 37,
line 2 reads

$$ The process.pid of the current Ruby Program being executed

instead of

$$ The Process.pid of the current Ruby Program being executed

To John: Please see

2.2 Tell me the posting guidelines for comp.lang.ruby

in the FAQ for this group that is available at

http://rubyhacker.com/clrFAQ.html

If you can read German the pointers in section

2.2.8 Links

of the German version of the FAQ that is available at

http://oss.erdfunkstelle.de/ruby/

Will provide you with additional information about formatting issues
and Outlook/Outlook Express that you might find helpful. Note to
myself: I should look for English language equivalents of the linked
ressources and mail them to Hal.

Please take notice of signature! / Bitte Signature beachten!

Josef 'Jupp' Schugt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,135
Messages
2,570,783
Members
47,341
Latest member
hanifree

Latest Threads

Top