From owner-freebsd-hackers Sun Apr 19 19:40:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA16217 for freebsd-hackers-outgoing; Sun, 19 Apr 1998 19:40:26 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wafu.netgate.net (wafu.netgate.net [204.145.147.80]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA16160 for ; Mon, 20 Apr 1998 02:40:15 GMT (envelope-from shigio@wafu.netgate.net) Message-Id: <199804200240.CAA16160@hub.freebsd.org> Received: (qmail 8955 invoked from network); 19 Apr 1998 18:42:42 -0000 Received: from ins21.tama-ap3.dti.ne.jp (HELO choota.signet.or.jp) (203.181.67.21) by wafu.netgate.net with SMTP; 19 Apr 1998 18:42:42 -0000 Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.8.7/) with ESMTP id LAA01992; Mon, 20 Apr 1998 11:39:31 +0900 (JST) To: "Jordan K. Hubbard" cc: Amancio Hasty , Eivind Eklund , Satoshi Asami , shigio@wafu.netgate.net, hackers@FreeBSD.ORG Subject: Re: Introducing gozilla(1). In-reply-to: Message from "Jordan K. Hubbard" of "Sun, 19 Apr 1998 16:55:55 MST." <495.893030155@time.cdrom.com> Date: Mon, 20 Apr 1998 11:39:31 +0900 From: Shigio Yamaguchi Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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()" if (netscape not running) invokes "netscape " 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