Answer the question
In order to leave comments, you need to log in
How to process incoming messages in Linux?
Given:
CentOs 6.5 minimal
Some port (let it be 7777) sometimes receives messages like either 'Ok' or 'Error'.
It is necessary that when the 'Error' message arrives on the port, the script '/opt/omgErrorNoPLS.sh' is executed.
The idea that came to my mind, but I don't really know how to implement it:
Raise on the nhinx server with php support. In php describe:
<?php
if (message=='Error')
exec('/opt/omgErrorNoPLS.sh');
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question