Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert Run a .rb file within another ...

Replytotopic

Run a .rb file within another .rb

Posted in Forums : Ask a Rails expert

 
Profile

Authority 12
Posting Rating 60
Sign in to rate this post

I have 10 independant files (a1.rb, a2.rb…..a10.rb) that can each run on their own. I need to run with different combinations of these files on my server. I was thinking if I can say something like ‘ruby a1.rb’ and then ‘ruby a5.rb’ in say main.rb. But that doesn’t work. What would? Thank you.

 
Profile

Authority 12
Posting Rating 60
Sign in to rate this post

Ok Got it :)

load ‘a1.rb’

Replytotopic

Other Recent Topics

Ask a Rails expert : How to use mephisto

Ask a Rails expert : How to use mephisto

Ask a Rails expert : will_paginate customization problem

Ask a Rails expert : BackgroundRB still wants 'development' environment...?

Ask a Rails expert : activescaffold, sql exception

Ask a Rails expert : Passing non-english chars in query string

Ask a Rails expert : Rails and 2D barcodes

Ask a Rails expert : apache giving proxy error

Ask a Rails expert : Custom Responses w/ 'extra' information...?

Ask a Rails expert : Log rotation in rails

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel