Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open a terminal from ruby code?

Are there any system libraries that will allow me to open groups of terminals (as tabs not multiple windows) from ruby? I don't want to use the exec() method to open the terminal app... For instance I'm running about 5 different terminals in my environment (mongodb, redis, daemons, etc) and I want to write a script that will open up that group of windows and execute commands to startup up all of those processes. Any ideas? I'm thinking I might only be able to do it with Objective-C or MacRuby.

like image 878
colourandcode Avatar asked Jun 20 '11 19:06

colourandcode


1 Answers

The terminitor gem does exactly what you want and it uses rb-appscript behind scenes.

like image 189
Augusto Avatar answered Oct 06 '22 18:10

Augusto