tmux
tmux is a useful tool to keep long time tasks (a.e. magma, matlab) running on a computer without keeping your session online during the whole computation:
Session
- Initial Start:
- open a console and connect through SSH to the machine you want to run the task on (most likely: compute.math.uzh.ch) by typing the host name: [user@tlX] compute and enter your password (there is a script called 'compute' which does nothing else than 'ssh compute' - in our evironment it's not necessary to type 'ssh compute')
- type
tmux
- Detach:
- to detach from screen ("send it to background"), press
Ctrl + b d - you now can log off from the terminal and your task will keep running
- to detach from screen ("send it to background"), press
- Attach again:
- if you want to check progress of your computations, log into the machine where your task is running like you did before
- Show list of sessions:
tmux ls - use
tmux attach -t <nr>to connect to your task.
Screen splitting
- Split Horizontally: Press Ctrl+b then " - This creates a new pane below the current one.
- Split Vertically: Press Ctrl+b then %
- Close open pane: Ctrl+d
- Navigate between panes using Ctrl+b and the arrow keys