You can use TTSnoop to monitor for messages that match more than one pattern. When a matched message is displayed, the name of the pattern that matched the entry can also be displayed.
You can add, edit, or delete messages and patterns to scrollable lists. TTSnoop allows the definitions of multiple patterns and messages to be saved and loaded from files. You can also define, save, and reload patterns and messages particular to a category of applications (for example, DeskSetTM tools) as well as associate messages and patterns with a user-defined name.
ttsnoop [ -t ]
The -t option displays the ToolTalk API calls that are being used to construct a particular pattern or message. Table 3-1 describes the buttons that are displayed when TTSnoop starts.
Button | Description |
Start | Click this button to activate message reception. TTSnoop will display any incoming messages that match the patterns you register. |
Stop | Click this button to stop receiving messages. |
Clear | Click this button to clear the window. |
About TTSnoop | Click this button to obtain general help for TTSnoop. |
Display | Click this button to display a panel of checkboxes to highlight specific ToolTalk message components on the TTSnoop display subwindow. |
Messages | Click this button to display a panel that enables you to create, store, and send ToolTalk messages. |
Patterns | Click this button to display a panel that enables you to compose and register ToolTalk patterns. |
Send Messages | Click this button to send messages that were stored using the Messages display. |
Button | Description |
Add Message | Click this button to store the current message settings. Once the messages are stored, you can recall and send these messages using the Send Message button on the main display window. |
Edit Contexts | Click this button to add, change, and delete send message contexts. The display window displayed allows you to edit contexts to be sent with your messages. |
Send Message | Click this button to send the newly created message. |
Click the Apply button to register your pattern. Once a pattern is registered, you can use TTSnoop as a debugging tool to observe what messages are being sent by other applications.
Click the Edit Receive Contexts button to add, change, and delete receive message contexts in patterns. The window displayed enables you to edit contexts to be registered with your patterns.
When you select a checkbox and click the Apply button, the specified ToolTalk message component is displayed until you make another selection and apply the change.