Project

General

Profile

Bug #2235 ยป pty_test.rb

vr.sundar (Sundar Vasan), 10/20/2009 04:12 AM

 
#!/usr/bin/env ruby
require 'pty'

r, w, pid = PTY.spawn("echo 'hello world'; sleep 1")

puts "sleeping"
sleep 5
puts "done"

    (1-1/1)