-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start tmux session for S&C from BakingTray menu #438
Comments
Notes on getting this to work: This seems to work from a Mac to Send command to remote tmux session: Todo: test on Windows! Add BT menu option to automatically start and open tmux session. We can date stamp the syncandcrunch messages. We can read the tmux buffer from Linux over SSH. Process:
Now in MATLAB this works!
This starts a windows command prompt and lists files on joiner
This automatically connects to joiner This connects to machine and starts a named tmux session
Start MATLAB in a new tmux session and attach to it
start MATLAB in a new tmux session in the background
Run a command in a tmux session named 'test'
|
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:
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
thenmachineB
in that order in the YAML. Then runningbakingtray.syncandcrunch.checkDiskSpace
will work onmachineA
and we could ask for machineB by suppling that as an input argument. That should future-proof us enough for now.The text was updated successfully, but these errors were encountered: