Hi, I have three scripts in my rails application under "script" directory. I am running those scripts one by one with command "ruby runner test1.rb" "ruby runner test2.rb", "ruby runner test3.rb". I want to create one more script, which will invoke these commands and run one by one. Is that possible in ror? Thanks, Tushar -- Posted via http://www.ruby-forum.com/.
Leonardo Mateo
2009-Nov-12 08:37 UTC
Re: Running different script files from one script file.
On Thu, Nov 12, 2009 at 6:20 AM, Tushar Gandhi <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > I have three scripts in my rails application under "script" directory. > I am running those scripts one by one with command "ruby runner > test1.rb" > "ruby runner test2.rb", "ruby runner test3.rb". > I want to create one more script, which will invoke these commands and > run one by one. > Is that possible in ror?That has nothing to do with Rails, you can build a shell script to call those ruby scripts. If you want to do it in ruby, you also can, take a look at ri Kernel#system. -- Leonardo Mateo. There''s no place like ~