Tom Cloyd
4/6/2008 8:11:00 AM
Mohit Sindhwani wrote:
> Toto Toto wrote:
>> my program is just
>>
>> puts "hello world"
>>
>>
>>
>> I use exerb to generate exe file,
>> "exerb a.rb"
>> it generate a exe file: a.exe
>> when i enter it
>> nothing happen
>> I just see a cmd windows flash
>> why?
>>
>>
>> my
>> exerb is 4.2
>> ruby 1.8.5
>> windows XP
>>
>
> I haven't used exerb but I think you may need to run a.exe from the
> command line. It sounds like you're double clicking on it in Windows.
>
> If I understand it correctly, you click on the file name, it opens a
> command window, prints "hello world" and exits the program, therefore
> closing the command window after that.
>
> Cheers
> Mohit.
>
>
>
Yes - and if this is happening, simply open a command window first, then
launch your exe file from the command line - "ruby {name}.exe". The
command window should remain open upon program termination.
t.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@tomcloyd.com >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~