James Byrne wrote: [...] > What you are looking for is the backtick '`' method of Kernel, aliased > as %x(). [...]
This shells out just like system() does. It's a good general method of running arbitrary shell scripts in other languages, but it should not be necessary when the scripts are in Ruby. Integrate instead of shelling out. [...] > To run one Ruby script from > another your would have something that looked like this, more or less. > > caller.rb > #!/usr/bin/env ruby > # call the other script and open an new shell > %x(path/to/my/other/script.rb) No. You'd be better off using require or similar. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

