Description
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:
- Check that connection to the machine is possible.
- List available tmux sessions
- Find an existing tmux session named after the acquisition machine
- 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.