telnet from link_to

Is there a way to launch a telnet session from a link_to?

Also I am referring to going to a command prompt then telnet to an IP.

<%= link_to("TELNET", "telnet://domain.com") %>

Cheers, Sazima

Ok, I found this but it is trying to go to a web address and not launch a telnet: Ideas?

<% require ‘win32ole’ %>
<% shell = WIN32OLE.new(‘Shell.Application’) %>

<%= link_to "#{[eqpt.name](http://eqpt.name)}", "shell.ShellExecute(\"telnet.exe #{eq.ip}\", 'c:\my_rails_app\script\server', '', 'open', 1)" %> - <%= eq.ip%>

Chris Habgood wrote:

Ok, I found this but it is trying to go to a web address and not launch
a
telnet: Ideas?

Why don't you actually try Sazima's suggestion (which is the proper way
to do it)?

Best,

Sorry, when I tried it the window disappeared so quick I did not think it was working. DOH.