in reply to Reading constantly generated log files: Suggestions invited
You obtain all the names fitting in a date in the dir, you sort the files, you pick the first and break the loop. This is more or less the idea
I had the same problem in one of my small projects, solved using a system line like:
system('for i in `ls -r $(date +%F_%H\:)*.log | head -1`; do emacs $i; done');Always opening the most recent file as long as the timestamp in its filename is right
(Entire script, just in case you want to read it, here)
|
|---|