Closed pitosalas closed 4 years ago
This is how tmux_command
s interact with tmux itself: https://github.com/braintree/runbook/blob/799c2e2869423ed1af3d56e6c2ba5459ac1143a9/lib/runbook/helpers/tmux_helper.rb#L23
C-m
is a return character that is sent to the tmux pane. The semicolon is getting interpreted by send-keys
. To alleviate this you can escape the semicolon as in:
tmux_command "/usr/bin/ruby soa_demo/soa_publisher_node.rb\\;", :bottom_left
server
, env
, etc do not apply to tmux commands. That is, all tmux_command
s are executed locally, so you would need to include ssh rails@#{PRIMARY_SERVER_IP}...
Thanks!!
I am experimenting with tmux + runbook. Here's a script and an error that it produces. Maybe you can see what's wrong? What does
unknown command: C-m
mean? It looks like tmux is giving it but I don't know what's going on. Thanks!This produces this output:
I assumed that the
statement would cause the following tmux commands to be sent to that server. Or do I need to actually put an
ssh
command in the tmux_command itself, like this?Thanks for your help. I'm kind of stuck at this point waiting for your comments!