Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

urlview skipping a part of the url

7 views
Skip to first unread message

Vijayvithal Jahagirdar

unread,
Feb 25, 2002, 10:09:17 AM2/25/02
to

hi I am having the following statement in my .urlview file
COMMAND netscape -remote 'openURL(%s)'
now whenever i try to open url's like
http://www10.edatoolscafe.com/nbc/articles/view_article.php?section=CorpNews&articleid=19695
I find everything after the first ampersand is not passed to netscape
so what netscape tries to open is
http://www10.edatoolscafe.com/nbc/articles/view_article.php?section=CorpNews
any idea on how to fix this?
Regards
Jags

--
"If you wish to make an apple pie truly from scratch, you must first invent the universe." -- Carl Sagan
Jahagirdar .V.S
IC Design Engineer , Texas Instruments (India) Ltd.
Ph (91)080-5099129(O)

Nicolas Ecarnot

unread,
Feb 25, 2002, 12:10:27 PM2/25/02
to
Le 25 Feb 2002 , Vijayvithal <a7c3eys...@sneakemail.com> disait :

I've just folowed-up your msg to me, in order to see it through mutt,
then through urlview, and it's working perfectly.

Just one thing, I remember having upgraded this urlview script recently.
Do you me to send you my new version ?

--
Nicolas Ecarnot

L'utilite, c'est avoir un telephone.
Le luxe, c'est en avoir deux.
L'opulence, c'est en avoir trois et
le paradis c'est de ne pas en avoir !
-- Doug Larson

Im Eunjea

unread,
Feb 25, 2002, 12:10:38 PM2/25/02
to
* Vijayvithal Jahagirdar <a7c3eys...@sneakemail.com> :

> hi I am having the following statement in my .urlview file
> COMMAND netscape -remote 'openURL(%s)'
> now whenever i try to open url's like
> http://www10.edatoolscafe.com/nbc/articles/view_article.php?section=CorpNews&articleid=19695
> I find everything after the first ampersand is not passed to netscape
> so what netscape tries to open is
> http://www10.edatoolscafe.com/nbc/articles/view_article.php?section=CorpNews
> any idea on how to fix this?
> Regards
> Jags

this is my .urlview:

COMMAND netscape.sh %s

and netscape.sh:

#!/bin/sh
netscape -remote "openURL($1)"

--
http://kldp.org/~eunjea/
GnuPG fingerprint: 08C9 2D3F 91B2 D395 2EFF 4C33 544C 321C E194 91CF

Vijayvithal Jahagirdar

unread,
Feb 26, 2002, 1:15:43 PM2/26/02
to
I again tried downloading the latest version of urlview if I set my browser
to lynx it works fine but if I set to netscape i.e uncomment the second
last lineit tells me
ERROR: Your COMMAND contains a single
quote (') character. This is most likely
in error; please read the manual page
for details. If you really want to use
this command, please put the word EXPERT
into a line of its own in your
~/.urlview file.
where as I dont see any hanging single quotes on teh other hand if I replace teh
single quotes with double quotes it tries to open
http://'http://www10.edatoolscafe.com/nbc/articles/view_article.php?section=CorpNews&articleid=16691'
note the dual http's
If I insert the word EXPERT I am left with my original problem
Regards
Jags


nicolas.p...@ecarnot.pas.de.spam.net (Nicolas Ecarnot) writes:

--
- "Advances are made by answering questions. Discoveries are made by questioning answers..."

Im Eunjea

unread,
Feb 26, 2002, 6:02:49 PM2/26/02
to
* Vijayvithal Jahagirdar <a7c3eys...@sneakemail.com> :

> I again tried downloading the latest version of urlview if I set my browser
> to lynx it works fine but if I set to netscape i.e uncomment the second
> last lineit tells me
> ERROR: Your COMMAND contains a single
> quote (') character. This is most likely
> in error; please read the manual page
> for details. If you really want to use
> this command, please put the word EXPERT
> into a line of its own in your
> ~/.urlview file.
> where as I dont see any hanging single quotes on teh other hand if I replace teh
> single quotes with double quotes it tries to open
> http://'http://www10.edatoolscafe.com/nbc/articles/view_article.php?section=CorpNews&articleid=16691'
> note the dual http's
> If I insert the word EXPERT I am left with my original problem
> Regards
> Jags
[...]

use shell script from urlview tarball (url_handler.sh) or make simple
shell script like this:

#!/bin/sh
netscape -remote "openURL($1)"

and change your .urlview like this:

COMMAND url_handler.sh %s

or if you have gnome you can use this:

COMMAND gnome-moz-remote %s

David Combs

unread,
Mar 17, 2002, 8:33:46 AM3/17/02
to
In article <slrna7kru4.4tu.ni...@siffly.nicolas.fr>,

Could you also send one to me!

Thanks!

David

Joost Kremers

unread,
Mar 19, 2002, 9:15:10 AM3/19/02
to
Vijayvithal Jahagirdar wrote:
>
> hi I am having the following statement in my .urlview file
> COMMAND netscape -remote 'openURL(%s)'
> now whenever i try to open url's like
> http://www10.edatoolscafe.com/nbc/articles/view_article.php?section=CorpNews&articleid=19695
> I find everything after the first ampersand is not passed to netscape
> so what netscape tries to open is
> http://www10.edatoolscafe.com/nbc/articles/view_article.php?section=CorpNews
> any idea on how to fix this?

i came across the same problem the other day. it seems to be a problem
with bash, not so much with urlview. i solved it in the following
way. my ~/.urlview looks like this:

----------

REGEXP (((https?|ftp|gopher)://|(mailto|file|news):)[^' \
<>"]+|(www|web|w3).[-a-z0-9.]+)[^' .,;<>":]

COMMAND /home/joost/bin/urlhandler.sh %s

----------

the REGEXP expression should be on one line, but slrn wants me to wrap
it. (remove the backslash.) note that it's the REGEXP that urlview
provides. i did not modidy it.

the script urlhandler.sh that urlview calls is not the one that is
supplied with urlview, but one i made myself:

----------

#!/bin/bash

exec /usr/bin/opera -remote "openURL($@, new-window)"

----------

this one's for opera, ns and other browsers can be called in the same
way.

HTH

--
Joost Kremers
Life has its moments

http://baserv.uci.kun.nl/~jkremers

0 new messages