LinuxQuestions.org
Visit the LQ Articles and Editorials section
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: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

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: 62
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: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

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: 62
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: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

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: 62
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 02:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration