From: Ryan Mcdonald Date: 2007-06-09T06:41:41+09:00 Subject: Re: trouble running ruby programs Jacob Gillie wrote: > Okay, the program worked in the command prompt, (Station! appeared under > the command line) but I still have the problem with the window closing > before anything appears. Also, there's a premade program in the bin > folder that DOES work in the window... is there some special code I need > to make a program able to open and run by itself? Maybe you can end your scripts with: gets that way they will hang until you hit enter on the window? the problem is that if you have an error, it won't get to the 'gets' and won't hang open. I find it better to open a command prompt and run the scripts from there. Then you can ALT-TAB between the prompt and your editor. This way will also show any errors.. Or you could use the Scite editor. You can specify "ruby" in the Language drop down, then just hit F5 to execute your scripts. The output shows up in a split window (not to mention the syntax highlighting..). you can download it here (for windows): http://prdownloads.sourceforge.net/scintilla/wscite173.zip?download -- Posted via http://www.ruby-forum.com/.