Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 1998 11:39:31 +0900
From:      Shigio Yamaguchi <shigio@wafu.netgate.net>
To:        "Jordan K. Hubbard" <jkh@time.cdrom.com>
Cc:        Amancio Hasty <hasty@rah.star-gate.com>, Eivind Eklund <eivind@yes.no>, Satoshi Asami <asami@FreeBSD.ORG>, shigio@wafu.netgate.net, hackers@FreeBSD.ORG
Subject:   Re: Introducing gozilla(1). 
Message-ID:  <199804200240.CAA16160@hub.freebsd.org>
In-Reply-To: Message from "Jordan K. Hubbard" <jkh@time.cdrom.com>  of "Sun, 19 Apr 1998 16:55:55 MST." <495.893030155@time.cdrom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> In my shell functions, I use stuff like this:
> 	function url { netscape -remote "openURL($*)" } Which invokes
> another copy of netscape long enough to send the already
> fully-instantiated netscape a message.  On my P6, it's so quick that I
> don't notice the overhead, but I can see how that might not be true
> for everyone and a command which *just* sends the protocol without
> invoking an entire copy of netscape to do it would probably be a win.
> 
> 					Jordan

How about using 'netscape-remote' command?
It is a subset version of 'netscape' which just talk the protocol.

	The source code of netscape-remote is freely available at:
		http://home.netscape.com/newsref/std/remote.c
		http://home.netscape.com/newsref/std/vroot.h
	(and found at netscape5.0/ns/cmd/xfe too. But license is different.)

'netscape-remote -remote ...' is equivalent to 'netscape -remote ...' and
smaller than 'netscape' like this.

-r-xr-xr-x  1 root  wheel  10743808 Nov  7 14:01 /usr/local/bin/netscape
-r-xr-xr-x  1 root  wheel  16384 Apr 13 10:26 /usr/X11R6/bin/netscape-remote

With 'netscape-remote', your script would be

	if we have netscape-remote then
		com=netscape-remote
	else
		com=netscape
	endif
	invokes "$com -remote openURL(<URL>)"
	if (netscape not running)
		invokes "netscape <URL>"

How about packing 'netscape-remote' command into netscape communicator package
as a part of it?
--
Shigio Yamaguchi (Freelance programmer)
	Mail: shigio@wafu.netgate.net, WWW: http://wafu.netgate.net/tama/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804200240.CAA16160>