Monthly Archives: October 2007

ed2k helper with Ruby

Nothing fancy. It works.

#!/usr/bin/ruby1.8

# ed2k link helper for Opera

host = ‘10.10.1.1′

link = ARGV.first

require ‘net/telnet’
core = Net::Telnet::new(
‘Host’ => host,
‘Port’ => 4000
)

core.cmd(”dllink #{link}”)
core.cmd(’q')
core.close