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.