Whats the best way of running a JRuby script from Ruby?

I know you can do this : `jruby script.rb`, but that won't allow passing
of parameters from ruby to jruby.

You could pass parameters by passing the Object.inspect string and then
doing an eval:


`jruby script/rb #{object.inspect}`
.

I suppose you could serialize your objects/parameters and pass it though
that way.

Any decent ideas?
Thanks
Chris
-- 
Posted via http://www.ruby-forum.com/.