-
Using my solution from #701 (comment) I am now extending it to send the command via ssh to an already existing tmux session, pretty much like: with MasterSlaveSsh() as ssh:
tmux = ssh.tmux("send-keys", "-t", "mysession_name:0")
tmux.echo("hello", "ENTER") Interestingly what arrives in the tmux session is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Found this: https://stackoverflow.com/questions/71306953/tmux-send-keys-swallows-spaces it seems going Would go along with implementing pane piping: https://stackoverflow.com/questions/12665625/how-to-get-the-result-of-send-keys-in-tmux |
Beta Was this translation helpful? Give feedback.
If I'm understanding your problem correctly, it doesn't seem related to an sh issue or an sh question, so it would be more appropriate to ask on stackoverflow than here. If you agree, please mark this discussion as closed.