Sha256: 0129cb49f2d30984331c0c4b3a6f2d2351c7b880b17ecb304d277586eeb36f99

Contents?: true

Size: 149 Bytes

Versions: 5

Compression:

Stored size: 149 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, signal: :KILL)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tty-command-0.8.1 examples/timeout.rb
tty-command-0.8.0 examples/timeout.rb
tty-command-0.7.0 examples/timeout.rb
tty-command-0.6.0 examples/timeout.rb
tty-command-0.5.0 examples/timeout.rb