Say I am writing to a log file:
services-manager &> lsm.log
is there a program I can use that will cap the log file at a certain size, maybe like 5mb?
so that might look like:
services-manager &> <(cap --mb=5 lsm.log)
using process substitution or whatever. What it means is if it starts getting too big, it will remove the lines at the beginning of the file.