Advertisement
Guest User

Untitled

a guest
May 29th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. require 'mkfifo'
  2. fifofile = "/tmp/sshfifotest"
  3. File::mkfifo(fifofile)
  4. File::chmod(0600, fifofile)
  5. writer = File.open(fifofile, "w+")
  6. writer.puts "123123123"
  7. writer.flush
  8. writer.close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement