From: Jonathan Castello Date: 2009-09-22T13:44:38+09:00 Subject: Re: How to detect what is running Ruby program? --_98964178-eab2-46cd-9c6b-ba37fa0b24e1_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Perhaps try passing a command-line argument if you're running from SciTE=2C= which your program can detect and act accordingly? Assuming there's no sim= pler way=2C that is. ~Jonathan > Date: Tue=2C 22 Sep 2009 13:33:23 +0900 > From: masonkelsey@gmail.com > Subject: How to detect what is running Ruby program? > To: ruby-talk@ruby-lang.org >=20 > I work on a Windows platform and have two utiltities that I can execute a > Ruby program from. The IDE SciTE and the fxri- Instant Ruby Enlightenmen= t=2C > or so it says. The input commands such as "gets" do not work in the SciT= E > utility but do in the fxri utility. If I use a gets command in a program > while running on SciTE the system seems to freeze and nothing appears to = be > happening. >=20 > So I would like to be able to embed in my code the ability to recognize i= f I > am running in fxri or SciTE to avoid executing a gets command while runni= ng > in SciTE. Is there a way to do it? Since I use only these two utilities= a > detection of one would mean that I am not using the other. >=20 > Thanks in advance to the Ruby Masters. >=20 > No Sam _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. http://clk.atdmt.com/GBL/go/171222985/direct/01/= --_98964178-eab2-46cd-9c6b-ba37fa0b24e1_--