|
Obsolete IDL Features: Obsolete Remote Procedure Calls |
|
int send_idl_command(CLIENT* client, char* command);
Call this function to send an IDL command to the IDL server referred to by client. The command is executed just as if it had been entered from the IDL command line.
This function cannot be used to send multi-line commands. If the first part of a multi-line command is sent, for example:
send_idl_command(client, "FOR I=1,5 DO $");
IDL spawns an interactive session and may hang. In any case, subsequent commands are not executed.
A pointer to the CLIENT structure that corresponds to the desired IDL session.
A null-terminated string with no more than MAX_STRING_LEN characters. MAX_STRING_LEN is defined in the file idldir/external/rpc/rpc_idl.h.
This function returns a status value that denotes success or failure as described below.
For all other errors, the error number is returned. This number could be passed as an argument to STRMESSAGE();.
IDL Online Help (March 06, 2007)