From: Junkone Date: 2008-04-25T06:35:15+09:00 Subject: Re: works thro irb but not on commandline On Apr 24, 4:58 pm, Peter Jones wrote: > Junkone writes: > > i have a strange prob. when i run this code under irb, the buddy can > > recieve the message. when i run it under the ruby commandline, the > > buddy does not recive the message. i am not sure what the difference > > is. > > Are there any error messages associated with it not working?  Have you > checked your ~/.irbrc to make sure there's nothing in there that would > be letting this work, that you don't have in the source file you are > trying? > > Have you written any test code to show it working vs. not working? > > -- > Peter Jones [pjones at domain below] > pmade inc. -http://pmade.com i have the aol im on my machine connected as one of the buddies i cut and paste the code from the aimbot.rb file and execute them line by line and when i hit friend.send_im(" hi how going") i get the IM on my aol client. when i execute the aimbot.rb the message does not popup on my aim client. i get no errors. nothing. beats the hell out of me. require 'net/toc' client = Net::TOC.new("userid","password") client.connect friend = client.buddy_list.buddy_named("mybuddy") friend.send_im(" hi how going") client.disconnect() the irb is the same code as above. no typeing. just cut and paste E:\Documents and Settings\User1>irb irb(main):001:0> require 'net/toc' => true irb(main):002:0> client = Net::TOC.new("userid","password") => #>, @screen_name="trad2win", @callbac , :config=>#, :update_buddy=>#, :error=>##}, @password="password::TOC::Connection:0x2eadb3c @msgseq=65919, @user="userid">> irb(main):003:0> client.connect => # irb(main):004:0> friend = client.buddy_list.buddy_named("mybuddy") => #, @idle_time=0, @warning_level=0> irb(main):005:0> friend.send_im(" hi how going") => 47 irb(main):006:0> client.disconnect => nil irb(main):007:0>