From: Opviel Krevt Date: 2011-07-20T05:34:34+09:00 Subject: Re: Code works in IRB but not when saved and run (NET/TOC) No errors. The rb file completes-- but the account never signs on and no message is sent. RUBY_VERSION yields 1.8.7 for both the rb file and irb. Using eventmachine, would it look something like this? EventMachine::run do #Define TOC Connection client = Net::TOC.new(username, password) #Connect client.connect #Grab object associated with buddy's screenname friend = client.buddy_list.buddy_named(screenname) #Sends the IM friend.send_im(message) end -- Posted via http://www.ruby-forum.com/.