Skip to content

Latest commit

 

History

History
57 lines (31 loc) · 1.91 KB

screen-tmux-lxplus.md

File metadata and controls

57 lines (31 loc) · 1.91 KB

How to use a screen or tmux shell in lxplus

New instructions are here

Old instructions

Access an lxplus (remember the machine number), e.g.

[ribrusa@lxplus751 ~]$

751 is the machine number.

In order to open a new screen session, just type

screen

In order to view if there are active screen sessions

screen -r

In case there are no active sessions you will see There is no screen to be resumed, if there is one active session, you will be addresed to it, finally if there are more than one active session (not reccomended) you will see something like

There are several suitable screens on:
    13929.pts-32.lxplus751	(Detached)
    5839.pts-32.lxplus751	(Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.

You can access one particular active session by typing

screen -r 13929.pts-32.lxplus751

In order to exit:

  • Simply leave (without terminating the session): ctrl+A+D
  • Kill the screen session: ctrl+D

If you leave lxplus and you want to access again a screen active session, you have to access the same lxplus (751 in this example).

Activate the cms environment:

source /cvmfs/cms.cern.ch/cmsset_default.sh

Now you should be able to execute cmsenvand all other cms alias commands from within the screen session.

Warning: the screen shell could result a limited one, but workarounds are available. For example if cmsenv does not work, you can use

eval `scramv1 runtime -sh`

Read / write privileges might be blinded in lxplus screen session. If you need to save files from inside the screen session and it does not comply you may need to explicitly update permissions:

kinit && aklog

insert the password you use to login into lxplus shell and you should be able to create and remove files within the screen session. Request a 50h long token

kinit -l 50:00 && aklog