iagctl create executable-object
iagctl create executable-object
iagctl create executable-object
Create a new executable object resource.
Use this command to create an executable object resource in the gateway’s data store. An executable object references an executable file on the machine where the gateway runs services.
For more information, see Executable objects.
You can pair an executable object with a service to control how the service runs. The executable object overrides the following behavior for each service type:
/bin/bashThe following example shows how to use an executable object with a Python service.
To use a specific Python interpreter when executing a Python service, create an executable object that points to it. For example, if you want to use /usr/bin/python3.12 instead of the interpreter in your $PATH at /usr/bin/python3.9, run the following:
Creates an executable object for use with the executable service. See iagctl create service executable --help for more information.
Creates an executable object that links to a specific Python interpreter for use with Python and Ansible services.