-- 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"

6. To kill attached screen, e.g. 36713.pts-21.machinename (Attached)


kill 36713

7. In case screen got frozen kill it and then wipe screens list:

kill 36713

screen -wipe

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r5 - 2012-02-13 - 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-2023 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