-- YurySmirnov - 04-Oct-2011
Working with screen on lxplus

1. Creating new screen:


2. Disconnecting from all screens keeping them running in background: Ctrl+a d

We're now in regular session: [detached] appears.

3. Now we can disconnect from regular session and then log in again. This way all running jobs will be killed except for those working in screens.

screen -ls

will show all your active screens, e.g.

[login@machinename]/mydir% screen -ls
There is a screen on:
        36713.pts-21.machinename (Detached)
        2794.pts-33.machinename   (Detached)
2 Sockets in /var/run/screen/S-login.

will appear.

4. Now say we want to reconnect to second screen:

screen -r 2794.pts-33.machinename (or simply screen -r 2794) (in case you have only 1 running screen you can simply type screen -r without any screen id indication!)

5. To destroy current (or all your existing screens - to be checked) screen and stop all running jobs in there press Ctrl+d

while in screen.

If you've have some screen running for >~ 12 h please kill it - otherwise you'll get "AFS token expired"

Edit | Attach | Watch | Print version | History: r6 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2011-10-17 - YurySmirnov
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback