Discussion:
Monitor EMS - trigger a trace
(too old to reply)
SRSeedBurners
2023-02-10 16:15:37 UTC
Permalink
Any ideas how to monitor the ems messages and if a certain message occurs trigger a ptrace script?
Randall
2023-02-11 04:07:24 UTC
Permalink
Post by SRSeedBurners
Any ideas how to monitor the ems messages and if a certain message occurs trigger a ptrace script?
Create an EMS filter on the message number/SSID you want to monitor. Create a program in C that starts an EMSDIST process with the filter and wait for events. When you get such an event, use PROCESS_LAUNCH_ to start ptrace. The EMS Manual has examples of this, IIRC.
Loading...