i added a custom debug command do the script.
echo "$(date) ---- " >> /tmp/debug.txt
with that i can now see that the call to the script works.
but the parameter handling in the script does not work.
i saw in another thread in checkmates that i have to read the input with the following command:
read input
and i can output the result to the debug file:
echo $input >> /tmp/debug
i know need to get the source ip from the input. i think i need to do this with an regex.
Does someone knows a better way to read the values from the log entry in my script?