0

I am using byobu with tmux:

byobu version 5.127
tmux 2.8

I have the following function defined in my .bashrc to monitor logs.

function monitor_log()
{
    IFS='\n';
    watch -n 1 'tail -n 100 /var/log/syslog';
}

I have the following lines in my windows.tmux

new-session -AD -s 'test';
new-window -n monitor monitor_log;
new-window -n general;

The problem is the byobu is not opening a window named "monitor". From the window numbering, it appears that the window is getting closed abruptly. Is there any way to "log" the byobu/tmux?

Thanks in advance!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.