On 2014-07-22 09:21 +0000, Adam Carrgilson (NBI) wrote: > I'm running on CentOS 6 and running the "wall" command, or the "write" > command sending a message to any of the terminals listed out of the > "who" command. Any message sent appears on the terminal but after any > interaction with that terminal it disappears as if it never existed.
It's still unclear to me what problem are you trying to solve. Can you describe the motivation and then describe the full commandlines you issue? If it's for notification only, why not use either some desktop notification software or just put the notification message into tmux's status bar? > Your idea about sending messages to the right TTY device does appear > to be correct. If I "echo" into the TTY listed from the "who" command, > it disappears like the "wall" and "write" commands do, but there is > another TTY listed in /dev/pts/ that is owned by my user, which I > assume is the TTY used by tmux and if I "echo" into there, the text > remains as I'd expect. Yeah, each pane in tmux will have its own tty device. > Is there a way I can pull the TTY reported by tmux that it's using? Yes, use something like "tmux list-panes -a -F '#{pane_tty}'". You can look up the arguments and more formatting options in tmux's man page. -- Balazs ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users