This is actually rather simple to do, at least on Kindle OS 5.17.0. To send an event use:
Quote:
lipc-send-event AAA.BBB.CCC your_event_name -s some_data
|
To wait for the event above use:
Quote:
lipc-wait-event AAA.BBB.CCC your_event_name
|
If you invoke the second command first from one ssh session and then invoke the first command from another, you will see the lipc-wait-event command display the given event name along with "some_data" included in quotes. You can use anything you like for AAA, BBB, and CCC, but I suggest using strings that are unique to you. To not exit after receiving the event and wait for more events, add a "-m" option to the lipc-wait-event command invocation.