From: Xavier Noria Date: 2010-01-26T18:55:31+09:00 Subject: Re: Pass arguments to 'require' Ruby takes its arguments from a global array called ARGV. That array is special because it is initialized by the interpreter, buy from then on it is a regular mutable array. In particular you can modify it: def with_argv(*argv) original_argv = ARGV.dup ARGV.replace(argv) yield ARGV.replace(original_argv) end You would use that method this way: with_argv(1, 2, 3) do require '/opt/ruby/script1' end Not that it is a good practice, you normall would invoke the scripts using #system or whatever, but since you say you are not a programmer that would fit into your current model if you don't feel confident to explore system.