Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run a script which I would like to print the status to a byobu tmux session. So for example print backup finished \n. Is it possible to do this with the name of the byobu tmux window, which you can give/rename with F8 ?

With screen (before) I did it like this: screen -S $SCREEN_NAME -p 0 -X stuff "print backup finished.$(printf \\r)"

share|improve this question

I think the best way to do this would be to use tmux's command-prompt action.

With a running Byobu (or tmux) session, simply run:

tmux command-prompt -p "backup finished"

This will print the message, "backup finished", in the status line, and stay there until you hit "enter" to acknowledge it.

Note that it's not window specific, but that command can be session (client) specific.

Full disclosure: I am the author and maintainer of Byobu.

share|improve this answer
kay, thanks. how do I make sure that it is send to the right session ? I have multiple tabs with different names. – user2693017 Jan 31 '14 at 19:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.