From: Sebastian Hungerecker Date: 2007-05-14T14:54:21+09:00 Subject: Re: compare between languages Martin DeMello wrote: > On 5/14/07, xymip wrote: > > In the meantime what is the best way to create a program file and then > > run it via terminal? > > Edit the file with your favourite text editor, save it with a .rb > extension, then run it from the prompt using ruby . Well, if it's a program that you are going to run a lot, I'd suggest a) saving it without the .rb extension, making it executable via "chmod +x " and moving it into a directory in your $PATH or b) saving it with the .rb extension, making it executalbe and create a symlink in your $PATH that doesn't have the extension. Then you can call it via " " from anywhere you want. The latter is what I do. -- Ist so, weil ist so Bleibt so, weil war so