Using named pipes in Rails
Posted
by FancyDancy
on Stack Overflow
See other posts from Stack Overflow
or by FancyDancy
Published on 2010-03-26T16:23:17Z
Indexed on
2010/03/26
16:43 UTC
Read the original article
Hit count: 612
named-pipes
|ruby-on-rails
I need to read and write some data through named pipes.
I have tested it in a simple Ruby app, and it works nice.
But I dont know, where should i put it in my Rails app? I have heard about Rake tasks, but i don't sure, is it right solution.
I need to open a pipe-file, and listen to data. If there is any, i need to process it and make a DB-query. Then, write some data to another pipe. I know, how it works, but the only problem - how to run it with Rails? Give me some examples, please.
© Stack Overflow or respective owner