exec_program()

 

exec_program() is used to run a 4GL program on a specified GUI server instance. It takes 4 arguments and has the following syntax:

 

exec_program(command, server, port, user_id)

 

where:

 

·         command = a variable of VARCHAR data type or a quoted character string, specifying the path to an application to be run,

·         server = a variable of the VARCHAR data type or a quoted character string, specifying the IP or the domain name of an application server.

·         port = a variable of the VARCHAR data type or a quoted character string, specifying the port used by a GUI server instance (defined by <port> tag in the listener.xml configuration file).

·         user_id = a variable of the VARCHAR data type or a quoted character string, specifying the user account to run an application for.

 

Usage

 

Here are examples of the exec_program() function:

 

CALL exec_program("my_program", "192.168.10.213", "default", "SYSTEM")

CALL exec_program("my_program", "190.155.207.10", "secure", "admin")