Guest User

Untitled

a guest
Sep 12th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.15 KB | None | 0 0
  1. require 'pty'
  2. master, slave = PTY.open
  3. system("urxvt -pty-fd #{master.fileno}&")
  4. master.close
  5. slave.puts "This is the IO of the inferior process"
Advertisement
Add Comment
Please, Sign In to add comment