TrueSight Middleware and Transaction Monitor (TMTM) can start an external program. You can call a batch file or script file that should include the location of the external programs and the parameters to pass.
The Program field must contain the full path to the program or script that you want to run, including any file extensions. If the program you provide executes a script or requires another file, that file must also be entered in the argument field with its absolute path included. This can be any program or script on the computer where the TMTM Event Service is installed.
Execute a program: Enter the required information in the Execute Program Properties dialog box:
Program: cmd.exe
Arguments: /c start c:\batchfile.bat
where:
batchfile.bat is a batch file to start a program with arguments
Note
TMTM can be configured to alert you if the cmd.exe command fails, but cannot alert you if the program started by this command succeeds or fails.
On launching Windows programs, select the allow service to interact with the desktop option from the service in the Windows Service Control Manager.
Working Examples of the Execute nodes Program and Arguments:
Use a shell available on the operating system. The script must be executable. Depending on the operating system, you mightneed to call the shell differently than the examples shown. See the system administrator or operating system documentation, if necessary.