LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-18-2006, 08:40 AM   #1
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Rep: Reputation: 30
Question Firefox - launching telnet


I have some webpages with telnet links (telnet://10.10.10.10). I want to be able to click on the links and have a terminal window open and start the telnet session to the IP address in the link.

When I click the link from within Firefox I get "Firefox doesn't know how to open this address, because the protocol (telnet) isn't associated with any program".


Any suggestions?
 
Old 10-18-2006, 10:33 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
This should be what you need to work it out:

http://blog.ryaneby.com/archives/fir...ocol-handlers/
 
Old 10-18-2006, 01:05 PM   #3
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
Thanks Matthew.

I got it working...somewhat.

How can I pass variables?

This is what I have so far:

Code:
/usr/bin/konsole
I want to pass the "telnet://10.10.10.10" to konsole. Any ideas how I would go about that?
 
Old 10-18-2006, 03:36 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Hmm, I can't get it to work. With simply /usr/bin/konsole it launches konsole but of course not with enough information to launch telnet with the correct address.

Using additional parameters like "/usr/bin/konsole -e telnet %h %p" just leads to an error message

I think maybe these external protocol handlers are broken in the Linux version of firefox?
 
Old 10-18-2006, 03:40 PM   #5
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
I guess I could write a script that launches it.
 
Old 10-18-2006, 04:01 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
But where will you get the hostname from? I tried this, but the called script doesn't get the address of the host or the port number on the command line, on standard input or via the environment...

Not sure how it could work, unless you always telnet to the same host, which is hard coded in the script...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox launching a twin which soon disappears.. andy-k Linux - Software 11 09-07-2006 07:02 AM
launching firefox help simcox1 Mandriva 15 06-01-2005 02:53 AM
Launching an app through telnet? P_Shep Linux - Newbie 2 10-22-2004 09:51 AM
PB launching shell-script with telnet Naurore LinuxQuestions.org Member Success Stories 1 08-04-2003 07:42 AM
PB launching shell-script with telnet Naurore Linux - Newbie 1 08-04-2003 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration