Jump to content

Is it possible to output "logger" only when it changes?


NewDisplayName

Recommended Posts

16 minutes ago, nuhll said:

Is there any documention about logger?

http://man7.org/linux/man-pages/man1/logger.1.html

16 minutes ago, nuhll said:

Hey, is it possible to only display the output of "logger text here" when the text changes?

Would require you to parse the syslog file, looking for identical lines and replace them akin to what happens when  you run diagnostics.

 

Probably easier way would be to modify the logic of your script to not output if the previous line was the same, and instead of running it every 5 minutes, run it once in a continual loop with a 5 minute sleep period between cycles

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...