Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hey, I mainly use ssh to login to a remote server. Sometimes I need to run a bunch of scripts, but some scripts depend on the output of some other scripts. Therefore it would be helpful if I could make some of my ssh window's commands start execution only after previous ones finish executation.
Currently I have something like this as a workaround

- window_name: script A
    window_shell: /bin/bash
    panes:
      - >
        time_consuming_script.sh
  - window_name: script B
    window_shell: /bin/bash
    panes:
      - >
        sleep estimate_time_for_script_A
        script_that_depends_on_script_A.sh

Of course this is far from perfect; some other more complicated methods include polling to check if the output of script A exists. But I just wonder if command execution control is possible for tmuxp.
Thanks!

You must be logged in to vote

Replies: 1 comment

Comment options

@cnut1648 This is a good request

As of right now (v1.13.1) the ordering of execution is undefined. tmuxp as it stands needs to have more control in this regard.

Any suggestions / conversation is welcome.

The ambition I have in tackling this is sometime around #758

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.