Proporcionaré un fragmento de código tmuxque puede darle dos ventanas diferentes que puede usar para ajustar ambos archivos simultáneamente:
tmux new-window -a -n Tail
tmux new-session -d -s Tail -n SSH0 -d
tmux selectp -t Tail
#This is tmux interactions with the user (colors of the tabs used, hot keys, etc.)
tmux bind-key -n M-Left previous-window -t WinSplit
tmux bind-key -n M-Right next-window -t WinSplit
tmux set-window-option -g monitor-activity on
tmux set -g visual-activity on
tmux set-window-option -g window-status-current-bg blue
tmux set-window-option -g window-status-fg red
tmux set -g pane-border-fg yellow
tmux set -g pane-active-border-bg red
tmux set -g message-fg yellow
tmux set -g message-bg red
tmux set -g message-attr bright
tmux set -g status-left "#[fg=red]#S"
#Names two seperate windows
tmux new-window -n tail1 -t Tail
tmux new-window -n tail2 -t Tail
#Now this will allow you to automatically run tail when this tmux script is run
tmux send-keys -t Tail:0 'tail -f file1.log' C-m
tmux send-keys -t Tail:1 'tail -f file2.log' C-m
ACTUALIZACIÓN: El uso screentambién puede adjuntar / desconectar varias sesiones para que pueda ejecutar tailvarias veces también. Puedo sugerir hacer esto:
screen -s Tail_Server1.log
A continuación, querrá mantener CTRL+A+Dpara desconectar sin matar las sesiones y luego siguiente:
screen -s Tail_Server2.log
Ambos funcionarán dos por separado screens, me referiría para screen --helpque pueda ajustarlo a cómo desea que ambas pantallas funcionen en su terminal.
screenpara crear dos sesiones diferentes? ¿Deberías poder usar la cola en ambas pantallas? Además,tmuxpuede hacer el trabajo también si lo tiene instalado.