Bureaucrats, cc_docs_admin, cc_staff
2,306
edits
(→Screen) |
No edit summary |
||
Line 16: | Line 16: | ||
==Screen== | ==Screen== | ||
=TMUX= | ==TMUX== | ||
[https://fr.wikipedia.org/wiki/Tmux tmux] is a terminal multiplexer that allows multiple virtual sessions in a single terminal session. You can also disconnect from an SSH server without interrupting its process(es). | [https://fr.wikipedia.org/wiki/Tmux tmux] is a terminal multiplexer that allows multiple virtual sessions in a single terminal session. You can also disconnect from an SSH server without interrupting its process(es). | ||
==Cheat sheet== | ===Cheat sheet=== | ||
For a complete reference, see [http://hyperpolyglot.org/multiplexers this page]. | For a complete reference, see [http://hyperpolyglot.org/multiplexers this page]. | ||
Line 42: | Line 42: | ||
|} | |} | ||
==Launch tmux inside a job submitted through tmux== | ===Launch tmux inside a job submitted through tmux=== | ||
If you submit a job with tmux and try to start tmux within the same job, you will get the <tt>lost server</tt> error message. This happens because the <tt>$TMUX</tt> environment variable pointing to the tmux server is propagated to the job. The value of the variable is not valid and you can reset it with: {{Command|unset TMUX}} | If you submit a job with tmux and try to start tmux within the same job, you will get the <tt>lost server</tt> error message. This happens because the <tt>$TMUX</tt> environment variable pointing to the tmux server is propagated to the job. The value of the variable is not valid and you can reset it with: {{Command|unset TMUX}} | ||
However, nested use of tmux is not recommended. To send commands to a nested tmux, one has to hit <tt>Ctrl+B</tt> twice; for example, to create a new window, one has to use <tt>Ctrl+B Ctrl+B C</tt>. Consider using <tt>screen</tt> inside your job (if you are using tmux on a login node). | However, nested use of tmux is not recommended. To send commands to a nested tmux, one has to hit <tt>Ctrl+B</tt> twice; for example, to create a new window, one has to use <tt>Ctrl+B Ctrl+B C</tt>. Consider using <tt>screen</tt> inside your job (if you are using tmux on a login node). |