Sha256: e2692e5495876a33fca63ec983f4672bfa2bcc1eaa4fbccd76832e4daf4b26d9

Contents?: true

Size: 146 Bytes

Versions: 8

Compression:

Stored size: 146 Bytes

Contents

# encoding: utf-8

require 'tty-command'

cmd = TTY::Command.new

out, err = cmd.run("echo 'hello' 1>& 2")

puts "out: #{out}"
puts "err: #{err}"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tty-command-0.5.0 examples/redirect_stderr.rb
tty-command-0.4.0 examples/redirect_stderr.rb
tty-command-0.3.3 examples/redirect_stderr.rb
tty-command-0.3.2 examples/redirect_stderr.rb
tty-command-0.3.1 examples/redirect_stderr.rb
tty-command-0.3.0 examples/redirect_stderr.rb
tty-command-0.2.0 examples/redirect_stderr.rb
tty-command-0.1.0 examples/redirect_stderr.rb