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. On Aug 11, 10:17 pm, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there a way to launch a telnet session from a link_to?
<%= link_to("TELNET", "telnet://domain.com") %>
Cheers, Sazima
On Aug 12, 12:17 am, Me <chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Is there a way to launch a telnet session from a link_to?
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'') %>
<td><%= link_to "#{eqpt.name}",
"shell.ShellExecute(\"telnet.exe #{eq.ip}\",
''c:\my_rails_app\script\server'', '''',
''open'', 1)" %></td> <td>-
<%eq.ip%></td>
On Tue, Aug 11, 2009 at 10:49 PM, Sazima
<rsazima-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> <%= link_to("TELNET", "telnet://domain.com") %>
>
> Cheers, Sazima
>
> On Aug 12, 12:17 am, Me
<chabg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > Is there a way to launch a telnet session from a link_to?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
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, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
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 < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---