From: Charles Oliver Nutter Date: 2008-04-02T20:00:48+09:00 Subject: Re: Passing command line arguments to Ruby or JRuby script. Swati Sharma wrote: > hi all, > > have just started working with ruby. i am building a jruby script which > has to branch to 20 threads and perform simultaneously. I am using > Java's Native threads and then calling ruby scripts in each of them. But > am encountering serious problems as in : > > Passing command - line arguments to the ruby script when it is called > from within the java thread( the arguments i need to pass are IP address > and an integer.). > > Please help me in this regard... Can you post an example of what you're doing? I'm not sure I understand. You may want to look at the JRuby code used for spinning up new JRuby instances in the same VM, since that allows passing parameters along correctly. - Charlie