Let's say on a single console I have tail -F running, showing the output of many log files in realtime.Sometimes I need to run commands there too, however, and examine their output briefly, without getting sprinkled over by the bursts of tail output.What might be a nifty way to killall -STOP tail (or otherwise temporarily suspend automatically) upon some interaction with the console (or at least pressing ENTER, which invokes the PROMPT command, etc.), and delay the killall -CONT tail by 90 seconds after the latest shell interaction? Previously, I had been doing manually:fg  # to tail processmanually press CTRL Zrun my command,see outputbg  # to tail process
Temporarily freeze a process upon shell interaction
shell;kill;prompt;tail