From: Hal Fulton Date: 2006-09-30T12:53:22+09:00 Subject: Re: Getting command line Timothy Hunter wrote: > Joe Van Dyk wrote: > >> Hi, >> >> If I launch a Ruby process with: >> ruby something.rb lots of "stuff here" and I want all 'of it' >> >> How can I get a string from inside the ruby process with: >> lots of "stuff here" and I want all 'of it' >> in it? >> > ARGV is an array of the tokens on the command line that follow the name > of the script. If you want them all in one string you can use the join > method to join them together. > > puts ARGV.join(' ') > Of course, if you (the OP) want the quotes, you'll have to escape them or the shell will strip them. Hal