From: Karl Halvorson Date: 2010-07-27T08:29:38+09:00 Subject: Re: basic beginner help needed Thanks James! The scripts are working from 'Start Comand Promp with Ruby' as you instructed. I think the problem with the command prompt before was not first switching to the directory where the .rb files are located. I think it is odd that the three or more tutorials that I have looked at do not mention this. Thanks again for all your help. James wrote: >> entered the text >> > Looks that way here, too. Good work! > > > >> >> >> > Sure thing. I ran your code and saw the same output. So you're doing > everything right, this is something with scite. I have no real idea > what's > happening to make the process hang, but a little research shows that > it's > related to the call to gets, and further research shows that this is a > known > problem with scite. > > There's a solution, though! Running the script from the command prompt > will > work fine. > > StartMenu -> All Programs -> Ruby191 -> "Start Command Prompt with Ruby" > cd "C:\Documents and Settings\Karl Halvorson\My Documents\Ruby\My > Ruby Tutorial scripts" > > Now run the script using ruby! Type: > ruby "name of script" > > > >> > http://support.microsoft.com/kb/310519 discusses environment variables, > including the PATH. With the ruby windows installer, you get the > shortcut > that we used above to start a command prompt with the right environment > for > using ruby. However, if you want you set up your environment so that > it's > always correct for running ruby from the command line, so that you can > use a > regular command prompt to run ruby programs instead of needing to use > the > specific shortcut that the installer gave you. -- Posted via http://www.ruby-forum.com/.