$ variable for process id?

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?

···


John Long
wiseheartdesign.com

$$ The process number of the program being executed.

?

daz

···

“John W. Long” ws@johnwlong.com wrote:

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?


John Long
wiseheartdesign.com

Cool! Thanks for the quick response.

···

John Long
www.wiseheartdesign.com

----- Original Message -----
From: “daz” dooby@d10.karoo.co.uk
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Tuesday, September 30, 2003 12:17 AM
Subject: Re: $ variable for process id?

“John W. Long” ws@johnwlong.com wrote:

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?


John Long
wiseheartdesign.com

$$ The process number of the program being executed.

?

daz

Hi!

  • John W. Long; 2003-09-30, 12:54 UTC:

From: “daz” dooby@d10.karoo.co.uk

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.

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

···

“John W. Long” ws@johnwlong.com wrote:

Warning! For sending me messages > 100 kB you need my explicit
permission. Otherwise they will be silently discarded.
Vorsicht! Mails > 100 KB nehme ich nur nach vorheriger Absprache
entgegen. Ohne eine solche Absprache werden sie ungelesen geloescht.