Sha256: 136bc04e91d3c7dc964e5a81ae2bb58fc1a2ca357f0ad8bd6fee2b888b2ed290

Contents?: true

Size: 134 Bytes

Versions: 7

Compression:

Stored size: 134 Bytes

Contents

# encoding: utf-8

require 'tty-command'

cmd = TTY::Command.new

cmd.run("while test 1; do echo 'hello'; sleep 1; done", timeout: 5)

Version data entries

7 entries across 7 versions & 1 rubygems

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