RAA - session/2.1.9

session / 2.1.9

Short description: drive Sh, Bash, IDL easily from scripts
Category: Library/System
Status: stable
Created: 2004-02-05 22:58:47 GMT
Last update: 2004-10-06 14:10:59 GMT
Owner: ahoward (Projects of this owner)
Homepage: http://www.codeforpeople.com/lib/ruby/session/
Download: http://www.codeforpeople.com/lib/ruby/session/
License: Ruby's
Dependency:
None
Description:

require 'session'

shell = Session::Shell.new

stdout, stderr = shell.execute 'ls'
status = shell.status

stdout, stderr = '', ''
shell.execute 'ls', :stdout => stdout, :stderr => stderr
status = shell.status

shell.outproc = lambda{|out| puts "#{ out }"}
shell.errproc = lambda{|err| raise err}
shell.execute('while test 1; do echo 42; sleep 1; done') #=> 42 ... 42 ... 42

Versions: [2.2.0 (2004-12-14)] [2.1.9 (2004-10-06)] [2.1.8 (2004-10-05)] [2.1.7 (2004-09-14)] [2.1.6 (-)]

Edit this project (for project owner)

back to RAA top