tmux send command to all panes
As in topic, can I send commands to all open panes? -- Best regards Tomasz Pajor
Re: tmux send command to all panes
Do you mean tmux commands or typing? I mean typing. There is no way to specify multiple panes/windows/anything to a single tmux command at the moment. You can do most things with a shell script though. A few people have suggested some abilities along the lines of omnitty or clusterssh but I'm not sure it is a good idea, or of the best way to do it right now. What I want to achieve here is that, for example i have 4 servers. I created one window, split it to 4 panes, and want to send all the commands that I will do to all 4 panes in the same time. So i'm typing in one pane and the input goes to the other 3 panes as well. Do You see this kind of behaviour going in to tmux?
Re: tmux send command to all panes
Do you mean tmux commands or typing? I mean typing. There is no way to specify multiple panes/windows/anything to a single tmux command at the moment. You can do most things with a shell script though. A few people have suggested some abilities along the lines of omnitty or clusterssh but I'm not sure it is a good idea, or of the best way to do it right now. What I want to achieve here is that, for example i have 4 servers. I created one window, split it to 4 panes, and want to send all the commands that I will do to all 4 panes in the same time. So i'm typing in one pane and the input goes to the other 3 panes as well. Do You see this kind of behaviour going in to tmux? Maybe. It wouldn't be hard to have a window flag to make it echo all input to every pane that is part of a window, but at the moment it isn't there. I'll have a look at it at some time probably. This would be great Nicholas! I'm looking forward to testing this.
mysql charset problem
I switched to MySQL 5.0.19 and now i have some issues with charsets :/ In my config files, my.cnf i've got such a record: character-set-server=latin2 collation-server=latin2_general_ci But when it get data from the database to the website, then theres the problem because it doesn't get it in the right charset i think. I've got a solution to this but it's quite annoying. mysql_query(SET NAMES latin2); Is there any other way to setup this so I don't have to put that code on each page? -- Tomasz Pajor WebSolutions