Hi Group, I''ve been thinking of how to remote-control or ''interact'' with a running EM instance, from almost anywhere. One approach I''ve heard of is to read and parse an email message, and to build an send an email containing any responses. Does anyone have any comments/insights on this? Is there a simpler or more flexible approach? Does anyone know of a project that implements such remote-control that I could study, preferably using EM, but not necessarily email driven. Regards Mark
TCP? I suppose there''s also ruby-debug from remote, though I''ve never used it. Not quite sure what you want to control! -R On Fri, Jun 20, 2008 at 1:48 AM, Mark V <mvyver at gmail.com> wrote:> Hi Group, > I''ve been thinking of how to remote-control or ''interact'' with a > running EM instance, from almost anywhere. > One approach I''ve heard of is to read and parse an email message, and > to build an send an email containing any responses. > Does anyone have any comments/insights on this? > Is there a simpler or more flexible approach? > Does anyone know of a project that implements such remote-control that > I could study, preferably using EM, but not necessarily email driven. > > Regards > Mark > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >
On 20 Jun 2008, at 08:48, Mark V wrote:> Hi Group, > I''ve been thinking of how to remote-control or ''interact'' with a > running EM instance, from almost anywhere. > One approach I''ve heard of is to read and parse an email message, and > to build an send an email containing any responses.Eww :-/> Does anyone have any comments/insights on this? > Is there a simpler or more flexible approach? > Does anyone know of a project that implements such remote-control that > I could study, preferably using EM, but not necessarily email driven.How about my TelnetIRB example: http://pastie.org/pastes/196664 There are lots of other examples and protocols which will be appropriate for use when they''re released.> > > Regards > Mark > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk
On Fri, Jun 20, 2008 at 7:15 PM, Roger Pack <rogerpack2005 at gmail.com> wrote:> TCP? I suppose there''s also ruby-debug from remote, though I''ve never > used it. Not quite sure what you want to control!Good point. My EM script is the client to a third party application. Initially, I''d like to be able to remotely get the the script to be able to: - start/stop/restart this 3rd party application - connect/disconnect/reconnect to the application. Initially I''d also like the script to be able to indicate what the current ''status'' is, as well as the results of the above instructions. I''d also like these instructions and results to be persistent. The volume wouldn''t be more than 10''s of messages (in both directions) per day. Over time I''d like the flexibility to be able to extend this functionality. Ideally I''d like this facility to be available almost anywhere, e.g. from my laptop, another laptop, my mobile. To my mind email starts to look like the most suitable mechanism. Amazon''s SQS limitations seem: it has a 4k limit on messages and a 4-day lifespan, may be as difficult to parse the messages as parsing an email, is less flexible, much more effort to setup. I could send/receive GPG encrypted emails, so security could be comparable to a SQS. If I use a web based email account I could get the portability/accessibility issue solved for me. SMS doesn''t seem to be easier than email or SQS and is more expensive. So at the moment it seems to me that email is the most convenient to use, least costly to set up and least costly to use. Cheers Mark> -R > > On Fri, Jun 20, 2008 at 1:48 AM, Mark V <mvyver at gmail.com> wrote: >> Hi Group, >> I''ve been thinking of how to remote-control or ''interact'' with a >> running EM instance, from almost anywhere. >> One approach I''ve heard of is to read and parse an email message, and >> to build an send an email containing any responses. >> Does anyone have any comments/insights on this? >> Is there a simpler or more flexible approach? >> Does anyone know of a project that implements such remote-control that >> I could study, preferably using EM, but not necessarily email driven. >> >> Regards >> Mark >> _______________________________________________ >> Eventmachine-talk mailing list >> Eventmachine-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/eventmachine-talk >> >
On Fri, Jun 20, 2008 at 8:01 PM, James Tucker <jftucker at gmail.com> wrote:> > On 20 Jun 2008, at 08:48, Mark V wrote: > >> Hi Group, >> I''ve been thinking of how to remote-control or ''interact'' with a >> running EM instance, from almost anywhere. >> One approach I''ve heard of is to read and parse an email message, and >> to build an send an email containing any responses. > > Eww :-/Yep my initial reaction too, but the more I thought about what I wanted (see my previous email) the more I realized tha web email accounts provided much of the functionality/accessibility I wanted to exploit.> >> Does anyone have any comments/insights on this? >> Is there a simpler or more flexible approach? >> Does anyone know of a project that implements such remote-control that >> I could study, preferably using EM, but not necessarily email driven. > > How about my TelnetIRB example: http://pastie.org/pastes/196664 >Thanks for posting that. It made me think of ''hitching'' your code to an Amazon SQS (to avoid opening a server port) to get remote access and persistence. The more I loooked into that the more I realized SQS was a little to restrictive (message size and lifespan) and difficult to access - e.g. how would I request the current state from my mobile phone... it can be done but setting up the SQS link seemed liknk as much work as an email parser.> There are lots of other examples and protocols which will be appropriate for > use when they''re released. >This sounds interesting. What other protocols did you have in mind? I could only think of SMS as being close to the convenince and ubiquity of email, but more difficult to setup a computer to send/receive SMS messages globaly. I''ve seen a project (can''t recall the name right now) that is using some IM protocol to manage compute units in a cloud computing scenario, but that seems tricky (to a non-IT spoecialist) to utilize away from a computer. Regards Mark>> >> >> Regards >> Mark >> _______________________________________________ >> Eventmachine-talk mailing list >> Eventmachine-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/eventmachine-talk > >