Archive of UserLand's first discussion group, started October 5, 1998.
Re: Scripting on Linux
Author: Paul Snively Posted: 5/17/1999; 11:07:25 AM Topic: Scripting on Linux Msg #: 6364 (In response to 6341) Prev/Next: 6363 / 6365
>What is the state of interapplication messaging on Linux (keep in >mind that this question is coming from a Mac user)?
The most pertinent answer from a Mac user's point of view, I imagine, is that UNIX-family OSes typically don't have a single, integrated, uniform interprocess communication standard (despite the fact that both BSD and AT&T System V flavors of UNIX do, indeed, have standard IPC APIs). That is, the APIs exist, but software isn't uniformly written to take advantage of them. In this respect, the situation isn't dissimilar to the situation on the Macintosh. :-)
The basic, standard IPC APIs are actually pretty weak, which is one of the reasons that CORBA rolled around. I know that Navigator is CORBA-aware, with an Inprise-nee'-Visigenic ORB in each and every copy. What I don't know is what, if any, of Navigator's functions are made available through CORBA.
>For example, if I'm browsing the Web with Netscape, is it possible >to ask Perl to get the URL of Netscape frontmost window?
This depends upon whether Netscape exposes a means to get the URL of the front window, and if so, does it do so through a mechanism that Perl can integrate with. Unfortunately, I don't know the answer to either question offhand, but my educated *guess* would be that recent versions of Navigator expose the DOM (Document Object Model) through CORBA, and I know there are Perl/CORBA integration points, so it seems like an experiment wouldn't be hard to whip together.
>Another example. If I'm getting a Web page with Perl (LWP), can I >pipe the result to Netscape, so it will display the result in this >browser?
This one's a lot easier: yes, even if it's only by having Perl write the page to some magical filename in /tmp and then passing the local URL to Navigator by the command line.
>This is trivial stuff to do on a Mac, is it possible on Linux?
Probably. It's trivial to do on a Mac because Netscape and Microsoft both bothered to implement some AppleEvents in their software. The open question is whether Netscape bothered to expose similar functionality via CORBA in Navigator, or whether similar functionality can be had somehow by passing command-line arguments to a Navigator process.
There are responses to this message:
- Re: Scripting on Linux, Wesley Felter, 5/17/1999; 9:42:01 PM
This page was archived on 6/13/2001; 4:50:14 PM.
© Copyright 1998-2001 UserLand Software, Inc.