All, I was interested in making an application that uses tmux as a display for a program - ie: one pane controls a process and the others display logs and statuses. In other words, I'd like to have the program write to the other pane's ptys with the various messages associated with the program.
However, I was running into an issue: how do I figure out which panes have which ptys? In order to do this correctly, I'd need to know windows 1, pane 1 has pty /dev/pts/13, windows 1 pane 2 has pty /dev/pts5, etc. etc, so I could redirect the output correctly. I suppose I could script up interacting with the other panes and call tty on them, but I was looking for something more concise, something like tmux pty-list which would display the list of ptys associated with each pane. Or perhaps better yet, a generic command: tmux run-pane-command "tty" which would run the same command (tty) on each pane for a given session and report back the output to the panel where the command was run, along with a header for each pane showing where the command was run, ie: window #1 pane #1: /dev/pts/13 window #1 pane #2: /dev/pts/5 etc. etc. If run inside of a tmux session, it would operate on the active session, if run outside, it would need to have a session given to it in the form of -t. How difficult would this be to implement? Or is there a command that does this already that I am unaware of? Thanks much, Ed ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users