Sha256: 02e06fc75da276e678925c56eaca6bdc4689cbfedc25257677215b49cd07aa24

Contents?: true

Size: 282 Bytes

Versions: 8

Compression:

Stored size: 282 Bytes

Contents

require 'frontkick'

out = '/tmp/frontkick_stdout.txt'
err = '/tmp/frontkick_stderr.txt'
result = Frontkick.exec(["ls /something_not_found"], :out => out, :err => err)
puts "write to #{result.stdout} and #{result.stderr}"
puts File.read(result.stdout)
puts File.read(result.stderr)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
frontkick-0.5.7 example/redirect_without_shell.rb
frontkick-0.5.6 example/redirect_without_shell.rb
frontkick-0.5.5 example/redirect_without_shell.rb
frontkick-0.5.4 example/redirect_without_shell.rb
frontkick-0.5.3 example/redirect_without_shell.rb
frontkick-0.5.2 example/redirect_without_shell.rb
frontkick-0.5.1 example/out_err.rb
frontkick-0.5.0 example/out_err.rb