6

Using tmux in a script, tmux produces messages like [remote detached from 585664.devpts0] or [exited]

How can these messages be suppressed?

I use in config

set -g visual-bell off
set -g status off; 
set -g visual-activity  off

and 2>/dev/null for all the tmux commands, but I can't get rid of the messages.

1 Answer 1

6

Those messages are printed unconditionally to stdout. I do not see any way to silence them except redirecting stdout to /dev/null using > /dev/null.

1
  • it prints to stdout not stderr. So simple! Commented Mar 2 at 18:09

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.