Set Up a Trigger Occurrence on a Server
You link the external occurrence, such as a database refresh or an e-mail, with a trigger on the server that causes the entry to run. You must also specify the name of the occurrence.
Trigger occurrences can also be set up by a Software Development Kit developer using the IBM® Cognos® software development kit. For more information, see the The IBM Cognos Software Development Kit Developer Guide.
Using the Microsoft Windows script named trigger.bat or the shell script named trigger.sh, you can trigger one or more schedules to run on the server. The script syntax follows where URL is the IBM Cognos server URL, username is a valid username in the specified namespace, password is the password for the username, namespace is the namespace for the username, and triggerlist is a comma separated list of trigger names:
trigger.bat URL [username password namespace] triggerlist
For example, if users want to schedule a report based on a database refresh and want to schedule a second report based on receipt of an email, your custom trigger command line may look similar to this:
trigger.bat http://localhost:9300/p2pd/servlet/dispatch username password namespace databaserefreshtriggername,emailtriggername
Procedure
Results
- -1 is a usage error, such as invalid parameter or syntax
- -2 is a communication problem with IBM Cognos server