NewDisplayName Posted December 18, 2018 Share Posted December 18, 2018 Hey, is it possible to only display the output of "logger text here" when the text changes? I have a script which runs eery 5 minutes, now it displays mostly the same, is it possible to only display it when it changes? Is there any documention about logger? Link to comment
Squid Posted December 18, 2018 Share Posted December 18, 2018 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
NewDisplayName Posted December 18, 2018 Author Share Posted December 18, 2018 If i could, i would. But i need to scrap everything from the internet and make it somehow work. I didnt found anything usefull on the link, thanks anyway, thought maybe there was an option to do so. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.