From owner-freebsd-chat Sun Sep 12 12:42:17 1999 Delivered-To: freebsd-chat@freebsd.org Received: from sand4.global.net.uk (sand4.global.net.uk [194.126.80.248]) by hub.freebsd.org (Postfix) with ESMTP id B3A9414A2D for ; Sun, 12 Sep 1999 12:41:56 -0700 (PDT) (envelope-from mark@globalnet.co.uk) Received: from pees01a02.client.global.net.uk ([195.147.145.239] helo=marder-1.) by sand4.global.net.uk with esmtp (Exim 2.12 #1) id 11QFVT-00067B-00; Sun, 12 Sep 1999 20:41:47 +0100 Received: (from mark@localhost) by marder-1. (8.9.2/8.8.8) id UAA00717; Sun, 12 Sep 1999 20:33:31 +0100 (BST) (envelope-from mark) Date: Sun, 12 Sep 1999 20:33:30 +0100 From: Mark Ovens To: Adrian Filipi-Martin Cc: Dag-Erling Smorgrav , Dirk GOUDERS , Wes Peters , chat@freebsd.org Subject: Re: More press Message-ID: <19990912203330.A668@marder-1> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Adrian Filipi-Martin on Sun, Sep 12, 1999 at 02:42:58PM -0400 Organization: Total lack of Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Sep 12, 1999 at 02:42:58PM -0400, Adrian Filipi-Martin wrote: > On 12 Sep 1999, Dag-Erling Smorgrav wrote: > > > Dirk GOUDERS writes: > > > Oh, sorry -- my "browse-url-at-mouse" function made > > > > > > http://www.zdnet.com/zdtv/screensavers/answerstips/story/02c36562c23246242c00.html > > > > > > of it... > > > > Netscape uses commans to separate parameters to the OpenURL command. > > Fortunately, the API is open and documented, so there's nothing to > > stop someone from writing a small command-line util that does the > > equivalent of "netscape -remote" except faster and better. > > Note, I redirected this to -chat. > > Try the following: > > : adrian@lorax; cat ~/bin/netscape_r > #!/bin/sh > if [ $# != 1 ]; then > echo "netscape_r URL" > exit 1; > fi > URL=$(echo $1 | sed -e 's/,/%2c/g') > exec /usr/local/bin/netscape -remote "openURL(${URL})" > Do you happen to know how to pass URLs containing commas to Netscape this way? I use urlview with this in ~/.urlview: COMMAND netscape -remote 'openURL(%s)' however Netscape barfs on URLs that contain things like: 30999847,0,19,1.html the kind of thing you see in zdnet URLs for instance. I've tried wrapping ``%s'' in both double and single quotes (not at the same time ;-) ) but they just get passed literally. The problem seems to be with Netscape, not urlview. > I set 'netstape_r' as my external browser in pine and it works just > fine. > > Adrian > -- > [ adrian@ubergeeks.com -- Ubergeeks Consulting -- http://www.ubergeeks.com/ ] > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-chat" in the body of the message -- STATE-OF-THE-ART: Any computer you can't afford. OBSOLETE: Any computer you own. ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message