Heinz Strunk
2011-Oct-10 07:46 UTC
Fork and run external application and use telnet to control it?
Hello, I need to build a web based control panel für an external application which cannot be detached. When I''m running it at the moment I need two terminal windows and it looks like this: Window 1: $ ./ext_app ...server started Window 2: $ telnet localhost 9000 connected to server input: startchannel 1 starting channel 1... input: allowip localhost added ip localhost... input: exit bye While I do all the inputs in window 2, window 1 logs it all. So my question is if there''s an easy way to: 1. Fork the rails application so it can call and run ./ext_app 2. Connect to the server via telnet and execute all these commands All web-based, of course :) Any ideas/suggestions are highly appreciated! Thanks Hans -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.