Previous Topic: Invoking ActionsNext Topic: IPC Data Passing


Command Line Data Passing

For the command line data passing method, the attributes of an event (the Event Name, Information and so on) are passed to the action routine as parameters on the command line in the order they appear in the configuration editor. The data to be passed is set up using the Action dialog box (see the figure in the section, Adding Actions, in the chapter Setting Up the ENS Components).

If you deselect an item in the configuration editor indicating that it is not required, then it will not appear on the command line invoking the script, nor will a zero length string be passed. This means that the parameter numbers for each item will change in the script depending upon what is being passed. For example, if the definition for action X specifies that it requires the Event Name, Class and Information only, then these will be passed as the first, second and third parameters respectively. If action Y requires only the Event Name and the Information, these will be passed as the first and second parameters respectively.