I would like to send from within a Tcl interpreter a command to an
already launched instance of Netscape Navigator to make it fetch a URL
from within Tk.
Would such a thing be possible? If so, I'd appreciate
very much a pointer to further particulars.
Please note that I know how to launch a *new instance* of Netscape
Navigator to let it fetch a URL. My question specifically adresses an
already running process of Netscape Navigator.
I would like to be able to do this under Linux, as well as Windows.
Thanks in advance for any help,
Erik Leunissen
==============
--
To send mail, strip the two q's from the e-mail address.
netscape has capabilities for this already. On Windows, you can talk
to it with DDE (use the built-in Tcl dde package), and on Unix IIRC
you exec netscape with the -remote flag, and it tries to use an
existing instance if it finds one.
--
Jeff Hobbs The Tcl Guy
Senior Developer http://www.ActiveState.com/
Tcl Support and Productivity Solutions
Join us in Sept. for Tcl'2002: http://www.tcl.tk/community/tcl2002/
> I would like to send from within a Tcl interpreter a command to an
> already launched instance of Netscape Navigator to make it fetch a URL
> from within Tk.
$ netscape -?
...
-remote <remote-command> to execute a command in an already-running
Netscape process. For more info, see
http://home.netscape.com/newsref/std/x-remote.html
...
--
Mike Hall
http://www.enteract.com/~mghall
Erik
Yes, it does, eventually. There is a Tcl-extension that does the same
thing (communicating with Netscape using X Window Properties) without
starting another instance of Netscape, which works much faster (almost
instantly and without any overhead). I haven't tried it with recent
versions of Tcl/Tk, though.
http://www.neosoft.com/tcl/ftparchive/sorted/net/netscape-remote-v1.2/
Jochem
I have used it with older versions of Tcl/Tk and older versions of Netscape.
I don't know if it still works with Netscape 6/7 though.
--
Tcl'2002 Sept 16, 2002, Vancouver, BC http://www.tcl.tk/community/tcl2002/
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto:lvi...@yahoo.com > <URL: http://www.purl.org/NET/lvirden/ >