Sha256: 4b6adf7efa509a6eca250ed016e7dcc4a238d2fa2c25970d2acd5a5c4ddab6a8

Contents?: true

Size: 338 Bytes

Versions: 23

Compression:

Stored size: 338 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift '.', '..', 'lib', File.join('..','lib')
require 'session'

sh = Session::new

stdout, stderr = sh.execute('cat', :stdin => open('/etc/passwd'))

stdout.each{|line| print line}



stdin, stdout, stderr = "42\n", '', ''

sh.execute('cat', 0 => stdin, 1 => stdout, 2 => stderr)

stdout.each{|line| print line}

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
redcar-0.3.8.1 plugins/runnables/vendor/session-2.4.0/sample/stdin.rb
redcar-0.3.8 plugins/runnables/vendor/session-2.4.0/sample/stdin.rb
session-3.1.0 sample/stdin.rb