|
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 |
Answered by
amoffat
Oct 13, 2023
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 |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.