Screens Summary Page
For HPF we are using screens so that the instrument PI can see what actions we are taking and we can share in real time the instrument control.
To see a list of the screen sessions do a screen -ls (after you have looged into hpf with ssh hpf@hpf ). You will see a list such as:
12324.pts-18.hpfserver (Detached) 10291.TIMS (Detached) 9904.ArchiveCopy (Detached) 31564.scripts (Attached) 26518.hpf (Attached) 9772.tmc (Detached) 12983.QuickLook (Detached) 6282.DataCopyingSession (Detached)
Select a screen to attach to by using the -x option and then the name of the screen for example: screen -x TIMS
The command above gets you into the hpf HET client sessioon: screen -x TIMS
The command we need to get into the hpf scripts session is: screen -x scripts
Once you are connected to a screen session you can move between different windows with a <cntrl>a n.
To end the screen session close the xterm/tab or do a <cntrl>a d. or simply close the terminal window with the X in the upper right corner. Do not do a <cntrl> d
Below is a list some of the screen short cuts that might be useful.
Key | Action | Notes |
Ctrl+a <esc> | enter copy mode to allow you to arrow up to old messages | <esc> <esc> to exit this mode. |
Ctrl+a c | new window | |
Ctrl+a n | next window | |
Ctrl+a p | previous window | |
Ctrl+a " | select window from list | |
Ctrl+a Ctrl+a | previous window viewed | |
Ctrl+a S | split terminal horizontally into regions | Ctrl+a c to create new window there |
Ctrl+a | | split terminal vertically into regions | Requires screen >= 4.1 |
Ctrl+a :resize | resize region | |
Ctrl+a :fit | fit screen size to new terminal size | Ctrl+a F is the same. Do after resizing xterm |
Ctrl+a :remove | remove region | Ctrl+a X is the same |
Ctrl+a tab | Move to next region | |
Ctrl+a d | detach screen from terminal | Start screen with -r option to reattach |
Ctrl+a A | set window title | |
Ctrl+a x | lock session | Enter user password to unlock |
Ctrl+a [ | enter scrollback/copy mode | Enter to start and end copy region. Ctrl+a ] to leave this mode |
Ctrl+a ] | paste buffer | Supports pasting between windows |
Ctrl+a > | write paste buffer to file | useful for copying between screens |
Ctrl+a < | read paste buffer from file | useful for pasting between screens |
Ctrl+a ? | show key bindings/command names | Note unbound commands only in man page |
Ctrl+a : | goto screen command prompt | up shows last command entered |