From: Tim Pease Date: 2008-11-25T04:07:54+09:00 Subject: Re: Can you run a command line script with arguments, without typing 'ruby' first? On Nov 24, 2008, at 11:47 AM, Jayson Williams wrote: > Hi All, > > I would like to do this -> my_script arg1, arg2 > This doesn't seem to work when the script has arguments. > > But if I type -> ruby my_script arg1,arg2 > It works fine. > > Is there a way I can run the my_script without typing ruby each time? on any *nix platform, make the script executable and put a hash-bang line at the top chmod 755 my_script vim my_script i#!/usr/bin/env ruby:wq my_script arg1 arg2 Blessings, TwP