From: Phillip Gawlowski Date: 2007-04-04T09:11:21+09:00 Subject: Re: Calling script with parameter Mat Howard wrote: > Does anyone know how to call a script with a parameter? > > Essentially I have a bunch of commands to run, but I only want to run > one at a time. I'm running this script from a config file. Something > like > [code]$ ruby my-script.rb param1[/code] ARGV is what you seek. This is an Array containing all your parameters. -- Phillip "CynicalRyan" Gawlowski http://cynicalryan.110mb.com/ Rule of Open-Source Programming #37: Duplicate effort is inevitable. Live with it.