From: Admin Tensor Date: 2013-05-08T11:46:42+09:00 Subject: Re: File Problem with pty and irb Stu wrote in post #1108165: > popen would also be appropriate for creating the mycode redirect to > pipe process and more importantly could be done without the named pipe > as well and done completely internally from within ruby's IO and > Kernel methods. In fact ruby has IO.pipe which is probably what your > looking for. Hi Stu, Thanks for your suggestions. Actually I don't want to use Ruby to deal with the named pipe. In Screen 2, I just used cat to verify that the named pipe is working, while in reality I have the real shell script which uses gnuplot and some other C code to provide some processing. I think by using Ruby to deal with named pipe, it will make the problem more complicated. It is just when I run mycode with pty and irb that the named pipe does not work. (It uses the absolute path for the named pipe inside mycode.) Best regards, Bill -- Posted via http://www.ruby-forum.com/.