Sample Header Ad - 728x90

Does "less" have "--retry" option like "tail"?

0 votes
1 answer
87 views
I'm using **less** to continuously trace Squid log file (as well as UFW log) with this command: less --follow-name -K +F /var/log/squid/access.log And at the time of rotation of Squid log **less** quits. I guess this happens because when an old file is renamed the new one is not created immediately but with a delay, though in the case of UFW log file this doesn't happen and **less** successfully switches to the new file. So is there a method or option to make **less** wait for a new file to appear?
Asked by EliiO (3 rep)
Nov 17, 2024, 01:10 AM
Last activity: Nov 19, 2024, 09:32 AM