From: Siep Korteling Date: 2008-11-25T06:53:48+09:00 Subject: Re: Can you run a command line script with arguments, withou 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. With my one-click-install it works just fine. This is my test1.rb: puts ARGV #when called like this: #test1.rb first second #it produces #first #second hth, Siep -- Posted via http://www.ruby-forum.com/.