Assume that we have a device which sends data (a file) back to the computer whenever something unexpected happens. Let's say if it detects a movement, it will send a data file to the computer.
The computer should notice and parse this file. Afterwards, it should execute a PHP file to do other stuff.
Currently we are using scheduled tasks on windows, but this checks the status minimum every 1 minute. Is there any way to detect this as soon as we received this? What can be used?
EDIT: In other words, how can I set a trigger to execute the php?
EDIT: there was a typo. I wrote pdf instead of php.