I'm trying to keep an eye on an installation script. It runs several things in parallel and sometimes creates new files in the logs/ directory.I found using tail -0f logs/*.log very convenient for this, but if new log files get created, I don't see them until I rerun tail.Is there some trick I can use to monitor all the files, including those that get created after the script was run? I think I can maybe do it if I call tail -0f in a loop, and then use another loop with inotifywait to kill tail whenever a new file appears. But this seems complicated. Any better solutions?
tail -f all files in directory, notice new files
command line;logs;tail