From: Admin Tensor Date: 2013-05-08T08:46:13+09:00 Subject: File Problem with pty and irb Hi, I have a C code that writes to a fifo file (a named pipe), and when I just run it directly, it is fine: Screen 1: ./mycode (running) Screen 2: cat < namedpipe (a lot of outputs) But when I try to run it via irb, it doesn't give me the output: Screen 1: irb -r cmd.rb irb(main):001:0> (the code is running in the background) Screen 2: cat < namedpipe (nothing) and cmd.rb is basically require 'pty' @rbOut, @rbIn, @pid = PTY.spawn('mycode') It looks that the code is running, because I can give the command in Screen 1 and the results are fine and indicate progress. Is there any way to make mycode to output to namedpipe under irb? Thanks. Best regards, Bill -- Posted via http://www.ruby-forum.com/.