Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ANN] Hijack: Connect to an existing process with irb

Reply
Thread Tools

[ANN] Hijack: Connect to an existing process with irb

 
 
Ian Leitch
Guest
Posts: n/a
 
      07-10-2009
[Note: parts of this message were removed to make it a legal post.]

Hi,

My new project 'Hijack' is pretty much useable now. It lets you connect to
an already running ruby process and interact with it using irb as if it were
a normal irb session.

I'm sure the benefits of this are pretty obvious

Github page: http://github.com/ileitch/hijack

Hope someone finds it useful!

Cheers

 
Reply With Quote
 
 
 
 
Marcin Raczkowski
Guest
Posts: n/a
 
      07-10-2009
Great. Could you tell me what's the difference from live-console?

 
Reply With Quote
 
 
 
 
Roger Pack
Guest
Posts: n/a
 
      07-12-2009
> Great. Could you tell me what's the difference from live-console?

They appear to scratch the same itch

Here's a way to do it through EM, too
http://gist.github.com/145471

=r
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Ian Leitch
Guest
Posts: n/a
 
      07-14-2009
[Note: parts of this message were removed to make it a legal post.]

I've just changed Hijack so that you can hijack any Ruby process - no need
for your target process to require any code before it can be hijacked. It
does this by first injecting a payload using gdb, then it signals the
process to start up a DRb server which the hijack client then connects to.

This should make it a lot more useful as most people probably wouldn't think
about using something like LiveConsole until a problem is known.. at which
point you have to enable LiveConsole in your app, restart it and then wait
for the problem to arise again.

The code is very new and fragile but it'd be great to get some feedback!

2009/7/11 Roger Pack <>

> > Great. Could you tell me what's the difference from live-console?

>
> They appear to scratch the same itch
>
> Here's a way to do it through EM, too
> http://gist.github.com/145471
>
> =r
> --
> Posted via http://www.ruby-forum.com/.
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IRB as test interface to existing object Brian Candler Ruby 2 03-17-2007 05:40 PM
irb require ... where does irb look? what path? anne001 Ruby 1 06-27-2006 12:07 PM
Why no existing Java type to existing XML schema binding support? nrm Java 3 04-10-2006 04:52 PM
irb question - variable definitions when calling irb from a script problem Nuralanur@aol.com Ruby 1 10-26-2005 09:13 PM
[ANN] irb-history 1.0.0: Persistent, shared Readline history for IRB Sam Stephenson Ruby 1 06-18-2005 08:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57