*** shell.rb Wed Apr 6 15:09:59 2011 --- shell.rb.new Wed Apr 6 15:10:03 2011 *************** *** 3,16 **** module Veewee class Shell ! def self.execute(command,options = {}) IO.popen("#{command}") { |f| print f } end #pty allows you to gradually see the output of a local command #http://www.shanison.com/?p=415 ! def self.execute2(command, options = {} ) require "pty" begin PTY.spawn( command ) do |r, w, pid| --- 3,16 ---- module Veewee class Shell ! def self.execute2(command,options = {}) IO.popen("#{command}") { |f| print f } end #pty allows you to gradually see the output of a local command #http://www.shanison.com/?p=415 ! def self.execute(command, options = {} ) require "pty" begin PTY.spawn( command ) do |r, w, pid|