#!/usr/bin/ruby %x{/usr/bin/touch /tmp/7777} puts "executed ok" puts "now doing with timeout" status = Timeout::timeout(5) { %x{/usr/bin/touch /tmp/7777} }
#!/usr/bin/ruby %x{/usr/bin/touch /tmp/7777} puts "executed ok" puts "now doing with timeout" status = Timeout::timeout(5) { %x{/usr/bin/touch /tmp/7777} }