From: Glen Holcomb Date: 2008-11-25T06:38:04+09:00 Subject: Re: Can you run a command line script with arguments, without typing 'ruby' first? ------=_Part_183187_14567203.1227562954174 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Nov 24, 2008 at 2:26 PM, Kyle Schmitt wrote: > On Mon, Nov 24, 2008 at 3:12 PM, Jayson Williams > wrote: > > I am using win os, so the shabang thing isn't an option for me. I put > > the script in my ruby bin path, and I can access the script from > > anywhere now, but I still have the same problem with the script not > > running properly unless i type ruby first. It is as if ruby does not > > attempt to read in arguments unless you explicitly pass the script > > through ruby. If I call the script with the arguments without putting > > 'ruby' first, the args don't seem to get read. > > Jayson, if your not on a real OS, you need to associate the extension > .rb with the interpreter. It's been a little while since I've done > this in windows, but it's actually pretty straightforward. You may > have to google for how to associate the script with the interpreter > though, as I don't recall the _exact_ steps. > > --Kyle > > And here I am forgetting the simple steps, doh! -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_183187_14567203.1227562954174--