location: Diff for "screen"

Institute of Mathematics - PublicMathWiki:

Differences between revisions 5 and 10 (spanning 5 versions)
Revision 5 as of 2014-03-05 13:42:09
Size: 904
Editor: crose
Comment:
Revision 10 as of 2025-02-04 13:35:45
Size: 1067
Editor: crose
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
screen is a usefull tool to keep long time tasks (a.e. magma, matlab) running on a computer without keeping your session online while the whole computation
Line 5: Line 4:
 * 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 then 'ssh compute' - in our evironment it's not necessary to type 'ssh compute')
 * type '''screen <application name>''' . F.e.: `screen maple`
 * to detach from screen ("send it to background"), press '''Ctrl + A + D '''
 * you now can log off from the terminal and your task will keep running
 * if you want to check progress of your computations, log in to the machine where your task is running like you did before
 * use '''screen -raAd''' to connect to your task
'''Attention''': [[tmux]] is a more modern and powerful tool for the same task as `screen`

screen 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:

 * 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 '''screen <application name>''' . F.e.: `screen maple`

 * Detach:

  
* to detach from screen ("send it to background"), press '''Ctrl + A + D '''
   * you now can log off from the terminal and your task will keep running

* Attach again:
   *
if you want to check progress of your computations, log into the machine where your task is running like you did before
   * use '''screen -raAd''' to connect to your task

screen

Attention: tmux is a more modern and powerful tool for the same task as screen

screen 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:

  • 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 screen <application name> . F.e.: screen maple

  • Detach:
    • to detach from screen ("send it to background"), press Ctrl + A + D

    • you now can log off from the terminal and your task will keep running
  • Attach again:
    • if you want to check progress of your computations, log into the machine where your task is running like you did before
    • use screen -raAd to connect to your task

PublicMathWiki: screen (last edited 2025-02-04 13:35:45 by crose)