Re: How do I plot to a different X-terminal from [message #1069] |
Wed, 09 June 1993 04:19 |
oet
Messages: 28 Registered: February 1993
|
Junior Member |
|
|
In article 23476@Princeton.EDU, Bill Davis <bdavis@pppl.gov> () writes:
> I'd like to have some IDL code send plots both to the X-terminal I am
> running from, and to another. Can anyone tell me how to do this? (I
> will run this under VMS and DECnet, but could switch to UNIX, if it
> matters.) I know I will have to handle the security on the remote
> X-terminal.
If you could switch to UNIX, you can do this using the RPC-capabilities
of IDL. Start several IDL servers on different machines ( idl -server & )
In $IDL_DIR/rpc/examples you will find some templates for writing
RPC-Clients. It should be easy to change this codes to be able to
provide a list of different IDL-RPC-Servers instead of only one.
Here is the usage of the small example rmtidl :
/* */
/* Usage: rmtidl [server_id] [hostname] */
/* */
/* E.g. rmtidl 0x234567890 -- change server id */
/* rmtidl mymachine -- use remote host */
/* 'mymachine' */
/* rmtidl 0x12345678 thunder -- use IDL running on */
/* host 'thunder' with server ID 12345678 (hex) */
/* */
... the command in the source code later in this example could be
changed to send the cmdbuffer with a loop to an array of servers:
printf("%d\n",send_idl_command( client, cmdbuffer ) );
-Thomas
--
|Thomas Oettli Internet: Thomas.Oettli@sma.ch |
|Swiss Meteorological Institute thomas.oettli@active.ch |
|Kraehbuehlstr. 58 CServe: 100015.3543@compuserve.com |
|8044 Zuerich |
|
|
|