Executing Multiple Connect Commands from a File
You can also use AgIPCExp to execute a series of Connect commands that are stored in an ASCII file. Within the file, the Connect commands can be separated by Linux "sleep" commands that drive the timing of command execution. To begin the Connect script from a shell using a telnet socket, type:
AgIPCExp [-m <authMode>] [-r] [-d <udsDir>] [-i <udsld>] [-t <tcpAddress>] [-c <certFile>] [-k <keyFile>] [-a <caFile>] [-b <bufferSize>]
| Option | Description |
|---|---|
| -m <authMode> | Set the authentication mode. The options are "single-user" (Windows only), "uds" (Linux only), "mtls", or "insecure". The defaults are "single-user" on Windows and "uds" on Unix. |
| -r | Use this to allow remote connections. The default is to prevent remote connections. |
| -d <udsDir> | This option is for Linux only when authMode = "uds". Use this to specify a socket directory. |
| -i <udsld> | This option is for Linux only when authMode = "uds". Use this to specify an ID for socket files. |
| -t <tcpAddress> | Use a TCP socket of the form host:port (e.g., server.mydomain:5050). |
| -c <certFile> | Provide a cetification file when using "mtls" mode. |
| -k <keyFile> | Provide a key file when using "mtls" mode. |
| -a <caFile> | Provide a ca file when using "mtls" mode. |
| -b <bufferSize> | Set the size of the buffer used for reading commands (default/minimum is 1024 bytes). A larger buffer can improve performance. |
AgIPCExp does not handle asynchronous commands.