login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
openbsd-misc
»
2007
»
November
»
11
Re: [OT] making Firefox respect telnet:// URLs
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Barry Miller
Subject:
Re: [OT] making Firefox respect telnet:// URLs
Date: Sunday, November 11, 2007 - 3:34 pm
On Sun, Nov 11, 2007 at 10:32:05PM +0100, ropers wrote:
quoted text
> xterm -e "telnet ${1##telnet://}" > > When I click a telnet URL that does not specify a port, it works, > xterm launches with telnet, which duly connects to the port. > > However, if I click a telnet URL that *does* specify a port, it does > not work, xterm closes immediately. I've manually figured out that it > throws the error message > > telnet: could not resolve mud.vhdev.com:1991/telnet: Name or service not known > > before closing. > > man telnet told me that telnet expects to be given the port number > separated by a space, not divided by a colon. > > Currently, if I click on telnet://mud.vhdev.com:1991, telnet is called with > > telnet mud.vhdev.com:1991 > > instead of > > telnet mud.vhdev.com 1991 > > which would be correct.
I think maybe sed, not awk. Try: xterm -e "telnet `echo ${1##telnet://}|sed -e 's/:/ /'`" (which assumes $1 is properly formed). --Barry
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[OT] making Firefox respect telnet:// URLs
, ropers
, (Sun Nov 11, 2:32 pm)
Re: [OT] making Firefox respect telnet:// URLs
, Barry Miller
, (Sun Nov 11, 3:34 pm)
Re: [OT] making Firefox respect telnet:// URLs
, ropers
, (Sun Nov 11, 4:25 pm)
Re: [OT] making Firefox respect telnet:// URLs
, Linus Swälas
, (Sun Nov 11, 6:02 pm)
Re: [OT] making Firefox respect telnet:// URLs
, Ingo Schwarze
, (Sun Nov 11, 6:24 pm)
Re: [OT] making Firefox respect telnet:// URLs
, n0g0013
, (Mon Nov 12, 5:16 am)
Re: [OT] making Firefox respect telnet:// URLs
, n0g0013
, (Mon Nov 12, 5:30 am)
Re: [OT] making Firefox respect telnet:// URLs
, Linus Swälas
, (Mon Nov 12, 7:02 am)
Re: [OT] making Firefox respect telnet:// URLs
, William Boshuck
, (Mon Nov 12, 10:25 am)
Re: [OT] making Firefox respect telnet:// URLs
, Linus Swälas
, (Mon Nov 12, 7:21 pm)
Re: [OT] making Firefox respect telnet:// URLs
, Darren Spruell
, (Tue Nov 13, 11:10 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Dave Jones
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
James Henstridge
Re: VCS comparison table
linux-netdev
:
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Guo-Fu Tseng
Re: jme: UDP checksum error, and lots of them
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Pieter Verberne
File collision while using pkg_add
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
git-commits-head
:
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
swsusp: provide users with a hint about the no_console_suspend option
Colocation donated by:
Syndicate