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}", "shell.ShellExecute(\"telnet.exe #{eq.ip}\", 'c:\my_rails_app\script\server', '', 'open', 1)" %> - <%= eq.ip%>

Chris H. 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,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

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

On Thu, Aug 13, 2009 at 1:41 PM, Marnen Laibow-Koser <