🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by Liam Greenwood Wed, 16 Oct 1996 00:00
SLRN 0.9 - Xbrowser problem
#26954
Author: Liam Greenwood
Date: Wed, 16 Oct 1996 00:00
26 lines
1316 bytes
I want to have SLRN fire off to a browser when I
see a URL.  The launch works fine from a shell:

netscape -remote openURL(http://www.some.domain,new-window)

This opens a new browser window on an already open
netscape process.  It also works without the 'new-window'
tag.

I have set in my slrnrc:

set Xbrowser netscape -remote openURL(%s,new-window)

...with various quoting places and types.  With no
quotes it gets screwed up with the "//" in the URL,
with quoting I get various errors, the most helpful
state is just ignoring the "-remote" flag.

Has anyone had any luck with this?

		Cheers, Liam



Re: SLRN 0.9 - Xbrowser problem
#26951
Author: Randall Hopper
Date: Wed, 16 Oct 1996 00:00
26 lines
1370 bytes
Liam Greenwood <liam@sweetums.lab.nz.eds.com> wrote:
 |I want to have SLRN fire off to a browser when I
 |see a URL.  The launch works fine from a shell:
...
 |I have set in my slrnrc:
 |
 |set Xbrowser netscape -remote openURL(%s,new-window)
...
 |Has anyone had any luck with this?

This works fine for me on slrn 0.9.0.0 beta:

set Xbrowser            "netscape -remote 'openURL(%s)' &"
set non_Xbrowser        "lynx %s"


-- 
_____________________________________________________________________________
    Randall Hopper  (AA8VB)   |  Picker International, CT Visualization
    rhh@ct.picker.com         |  FAX: (216) 473-7098
            *** WINDOWS, from the folks who brought you EDLIN ***
_____________________________________________________________________________


Re: SLRN 0.9 - Xbrowser problem
#26979
Author: Yeechang Lee
Date: Thu, 17 Oct 1996 00:00
14 lines
987 bytes
Randall Hopper <rhh@ct.picker.com> wrote:
>This works fine for me on slrn 0.9.0.0 beta:
>
>set Xbrowser            "netscape -remote 'openURL(%s)' &"
>set non_Xbrowser        "lynx %s"

Hallelujah!  Just what I was looking for.  John, can you make this the
default setting in the next release?
-- 
http://www.columbia.edu/~ylee/


Re: SLRN 0.9 - Xbrowser problem
#27003
Author: John E. Davis
Date: Fri, 18 Oct 1996 00:00
17 lines
1298 bytes
On 17 Oct 1996 15:00:18 GMT, Yeechang Lee <ylee@columbia.edu>
wrote:
 : >set Xbrowser            "netscape -remote 'openURL(%s)' &"
 : >set non_Xbrowser        "lynx %s"
 : 
 : Hallelujah!  Just what I was looking for.  John, can you make this the
 : default setting in the next release?

I will add it to the sample slrn.rc file but leave it commented out.
When I tested the command, netscape started to run but then aborted.
-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis

Re: SLRN 0.9 - Xbrowser problem
#27064
Author: Dominic Mitchell
Date: Sun, 20 Oct 1996 00:00
26 lines
1710 bytes
On 18 Oct 1996 03:44:51 GMT, John E. Davis <davis@space.mit.edu> wrote:
| On 17 Oct 1996 15:00:18 GMT, Yeechang Lee <ylee@columbia.edu>
| wrote:
|  : >set Xbrowser            "netscape -remote 'openURL(%s)' &"
|  : >set non_Xbrowser        "lynx %s"
|  : 
|  : Hallelujah!  Just what I was looking for.  John, can you make this the
|  : default setting in the next release?
| 
| I will add it to the sample slrn.rc file but leave it commented out.
| When I tested the command, netscape started to run but then aborted.

The trouble is that it requires a copy of netscape to be already
running on the same display.  If there isn't one, it'll just do
nothing.  I think leaving it commented out is a good thing along with
a note that it requires an already running copy.

-Dom

-- 
Not speaking for Demon Internet Ltd. in any way, shape or form.
Unofficial sponsor of the NOC Helpdesk: Mountain Dew, Inc.


Re: SLRN 0.9 - Xbrowser problem
#27074
Author: Liam Greenwood
Date: Sun, 20 Oct 1996 00:00
20 lines
1595 bytes
On 18 Oct 1996 03:44:51 GMT, John E. Davis <davis@space.mit.edu> wrote:
> On 17 Oct 1996 15:00:18 GMT, Yeechang Lee <ylee@columbia.edu>
> wrote:
>  : >set Xbrowser            "netscape -remote 'openURL(%s)' &"
>  : >set non_Xbrowser        "lynx %s"
>  : 
> I will add it to the sample slrn.rc file but leave it commented out.
> When I tested the command, netscape started to run but then aborted.
That would be great.  I couldn't get the quoting right, and your 
current example just needs simple quoting.  If you're going to 
have it commented out out, can I suggest you have the longer form
that opens the URL in a new netscape window?

set Xbrowser	"netscape -remote 'openURL(%s,new-window)' &"

		Cheers, Liam


Re: SLRN 0.9 - Xbrowser problem
#27089
Author: Sven Guckes
Date: Mon, 21 Oct 1996 00:00
48 lines
2188 bytes
hdm@demon.net (Dominic Mitchell):
> |  : >set Xbrowser            "netscape -remote 'openURL(%s)' &"
> |  : >set non_Xbrowser        "lynx %s"
> The trouble is that it requires a copy of netscape to be already running on
> the same display.  If there isn't one, it'll just do nothing.  I think
> leaving it commented out is a good thing along with a note that it requires
> an already running copy.

And you can get rid of this problem by using a little script:

	http://www.math.fu-berlin.de/~leitner/slrn/Netscape

Maybe this should be added to the release.  JED?

Sven

-- 
Sven Guckes guckes@math.fu-berlin.de using SLRN 0.9.0.0 [released 960903]
SLRN Pages:         http://www.math.fu-berlin.de/~guckes/slrn/
SLRN Author's Page: http://space.mit.edu/~davis/slrn.html (John E. Davis)
SLRN Manual on WWW: http://www.wp.com/TNTCONSULTING/slrn.html

It's small, so I will append it.  Flames will be ignored.  ;-)
===
#!/bin/zsh

if [[ ${1:-/dev/mouse} = /dev/mouse ]]; then
  param="about:"
else
  param=$1
fi
ulimit -c 0
if test -h /usr/5bin; then
  export CLASSPATH=/import/pub/lib/netscape	# Solaris
  netscape=/import/pub/bin/netscape
else
  export CLASSPATH=/Vol/pub/lib/netscape	# SunOS
  netscape=/Vol/pub/bin/netscape
fi
$netscape -remote openurl\($param,new-window\)
if [[ $? != 0 ]]; then
  $netscape $param &
fi
===


Re: SLRN 0.9 - Xbrowser problem
#27096
Author: David Mears
Date: Mon, 21 Oct 1996 00:00
37 lines
1900 bytes
Dominic Mitchell <hdm@demon.net> wrote:

> On 18 Oct 1996 03:44:51 GMT, John E. Davis <davis@space.mit.edu> wrote:

> | On 17 Oct 1996 15:00:18 GMT, Yeechang Lee <ylee@columbia.edu>
> | wrote:

> |  : >set Xbrowser            "netscape -remote 'openURL(%s)' &"
> |  : >set non_Xbrowser        "lynx %s"
> |  : 
> |  : Hallelujah!  Just what I was looking for.  John, can you make this the
> |  : default setting in the next release?

> | I will add it to the sample slrn.rc file but leave it commented out.
> | When I tested the command, netscape started to run but then aborted.

> The trouble is that it requires a copy of netscape to be already
> running on the same display.  If there isn't one, it'll just do
> nothing.  I think leaving it commented out is a good thing along with
> a note that it requires an already running copy.

A simple script can handle the basic case:

	#! /bin/ksh
	eval netscape -remote "openURL\($1\)" </dev/null >/dev/null 2>&1
	if [ $? != 0 ]; then
		eval nohup netscape "$1" </dev/null >/dev/null 2>&1 &
	fi

David B. Mears
Hewlett-Packard
Cupertino CA
mears@cup.hp.com


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads