Hi, I have a problem.
I have a file like this:
This is a file where application put result - information about device.
This file always looks in the same way, not like /var/log/messeges (never ending story).
And now each value can bo in range from 1 to 100.
I expect that if Value1 is less than 10 i should receive notification.
Ho to do that? How to extract number 5,10,70 from line and monitor changes?
Or better way is check if files contain line Value1=10, Value1=9 etc. and then run trigger and sent notifocation.
Please help
I have a file like this:
Code:
Enabled=0 Status=0 Value1=5 Value2=10 Value3=70
This file always looks in the same way, not like /var/log/messeges (never ending story).
And now each value can bo in range from 1 to 100.
I expect that if Value1 is less than 10 i should receive notification.
Ho to do that? How to extract number 5,10,70 from line and monitor changes?
Or better way is check if files contain line Value1=10, Value1=9 etc. and then run trigger and sent notifocation.
Please help

Comment