About batch notifications
The Opportunity Detect engine can run batch files when it completes a run. You can use these files to issue different notifications for each successful and failed engine run.
An example batch file is shipped with the product; you must edit this file as needed to perform the appropriate actions for your system when the Opportunity Detect engine completes a run. If the batch file is empty, no further processing takes place.
The batch file must be a shell script with the .sh extension. It must have executable permission (755).
When you run the Opportunity Detect engine from the Batch Run tab in a workspace, check the Batch Notification check box and specify the file name to run a batch file when the process completes.
Batch file usage examples
- After an engine process runs successfully, the notification file can call an external process to act on the reported outcome data.
- After an engine process fails to complete, the notification file can send a notification of the failure to the appropriate people.
Batch file required location
You must create a scripts
directory on the machine where Streams is installed,
under the /home/streamsadmin/OpDetection
directory, if it has not been created previously. Place your batch file in this directory.