# Running different script files from one script file

**URL:** <https://www.ruby-forum.com/t/running-different-script-files-from-one-script-file/178845>\
**Category:** Rails\
**Created:** [November 12, 2009, 6:20am UTC](https://www.ruby-forum.com/t/running-different-script-files-from-one-script-file/178845 "2009-11-12T06:20:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 12, 2009, 6:20am UTC](https://www.ruby-forum.com/t/running-different-script-files-from-one-script-file/178845/1 "2009-11-12T06:20:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 12, 2009, 9:39am UTC](https://www.ruby-forum.com/t/running-different-script-files-from-one-script-file/178845/2 "2009-11-12T09:39:08Z")

</div>

On Thu, Nov 12, 2009 at 6:20 AM, Tushar G.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 M…  
There’s no place like ~
