Skip to content

run shell_command list like expect script #376

Open
@zhangnew

Description

@zhangnew

I use tmux 2.3, tmuxp 1.3.5, Python 3.6.4, when I use this config:

    panes:
      - shell_command:
          - ssh [email protected]
          - pwd

when ssh command slow, these two command run together, not run pwd in machine x.x.x.x

if run in expect , such as expect "*#" { send "pwd\r" } means when run ssh [email protected] done and show command prompt *#, then run pwd.

instead of run commands like this

for cmd in pconf['shell_command']:
p.send_keys(cmd, suppress_history=suppress)

Another way is that write a shell_command to run a expect script.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions