The screen command allows you to use multiple shell sessions within one ssh session. This process can be accomplished by attaching, detaching, and reattaching from shell sessions.
Follow the steps below to use the screen command on the Grid.
Step 1
Create a screen session
- Enter screen
-S session_name.

- Start an interactive job. See instructions on how to start an interactive job.
Note: Your interactive job will end based on the specified walltime even when you detach from the screen session.
Step 2
Save the screen session by detaching
- Press Crtl+A followed by D. You will receive a confirmation message stating you've detached from the screen session.

Step 3
Reattach to a screen session
- Enter
screen -ls to display all screen sessions you've created.

- Enter
screen -r session_id to reattach to a screen session.


Step 4
Reattach to the screen session as shown in step 3 then enter exit. You will receive a confirmation message stating the screen has been terminated and when you enter screen -ls the screen session will no longer be listed.

