Skip to content

Start tmux session for S&C from BakingTray menu #438

Open
@raacampbell

Description

@raacampbell

System settings file should contain analysis machine name and user name. There should be a shared SSH key from Windows command prompt to allow passwordless SSH to this account. From this it is possible to write MATLAB functions that do the following:

  1. Check that connection to the machine is possible.
  2. List available tmux sessions
  3. Find an existing tmux session named after the acquisition machine
  4. Open a command window, ssh to the machine, start tmux and attach to the existing seesion or create one named so.

Bonus points if we can first look through available open windows and find a window that already has the tmux connection open.

Should probably allow for multiple analysis PCs, just in case someone has a backup or something like that. So we add a friendly-name for each and import cell arrays from the YAML file. The first is the default. so, for example, we could have machineA then machineB in that order in the YAML. Then running bakingtray.syncandcrunch.checkDiskSpace will work on machineA and we could ask for machineB by suppling that as an input argument. That should future-proof us enough for now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions