Working with tmux
tmux is a very useful Linux command line tool. It allows you to create command line session that is persistent; meaning you can close the window and re-open it later and it remains in the same state. This allows you to do things such as start a long data compression operation from home then log out again, leaving the compression still running. tmux is therefore safe to use if you have a flaky network connection. You can also connect to existing tmux sessions. So if you start an operation locally on a PC, you can go home and re-connect to the same window. There is a tmux tutorial here Below are details on some common operations that might be useful in the context of StitchIt.
What to do if the last syncAndCrunch session is still stitching
Here is what to do if the previous syncAndCrunch session is stitching the last brain and you want to begin a new one.
Rename the existing
tmuxsession to something memorable. e.g. if the current sample is calledXYZ-123then we can rename thetmuxsession tostitch_XYZby doing:ctrl bthen press$then you can type the new name. Then press return.Now detach from the existing session with
ctrl bthen pressd.You are now back at the non-tmux Linux command line (the green bar at the bottom has gone). You can verify your session is in the background with
tmux ls. That lists alltmuxsessions.Start a new session by typing
tmux.Rename it to whatever you normally call your
syncAndCrunchtmuxsessions. e.g. You might always name them after the microscope. To rename you can again doctrl bthen press$then typeslicerscopeor whatever the name is that you normally use.Start MATLAB with
matlabWhen you are ready you can run
syncAndCrunch('slicerscope')(substituteslicerscopewith your rig name)
Last updated
Was this helpful?