{"id":2311,"date":"2022-06-14T09:56:25","date_gmt":"2022-06-14T16:56:25","guid":{"rendered":"https:\/\/in.nau.edu\/hpc\/?page_id=2311"},"modified":"2024-08-13T14:49:40","modified_gmt":"2024-08-13T21:49:40","slug":"using-the-screen-command","status":"publish","type":"page","link":"https:\/\/in.nau.edu\/arc\/using-the-screen-command\/","title":{"rendered":"Working With an Unstable Internet Connection"},"content":{"rendered":"
If you are working with an unstable internet connection via ssh and you don’t want to lose your progress every time you disconnect, the screen<\/span> command allows you to run a background session that you can reconnect to later.<\/p>\n Screen enables your login process and connected processes to remain running if\/while your ssh connection is interrupted. Its pretty easy:<\/p>\n If desired, you now may disconnect from Monsoon while allowing your programs to continue without being actively connected. Here’s how:<\/p>\n Now that you are disconnected from screen, your processes will continue to run to completion.<\/p>\n To reconnect to screen to monitor or end your programs do the following.<\/p>\n The screen -r<\/span> command will resume an existing screen session. If there are multiple sessions you will have to be specific:<\/p>\n <\/li>\n <\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":" Working With an Unstable Internet Connection If you are working with an unstable internet connection via ssh and you don’t want to lose your progress every time you disconnect, the screen command allows you to run a background session that you can reconnect to later. Starting a screen session Screen enables your login process and […]<\/p>\n","protected":false},"author":470,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ring_central_script_selection":"","footnotes":""},"class_list":["post-2311","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages\/2311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/users\/470"}],"replies":[{"embeddable":true,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/comments?post=2311"}],"version-history":[{"count":46,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages\/2311\/revisions"}],"predecessor-version":[{"id":3576,"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/pages\/2311\/revisions\/3576"}],"wp:attachment":[{"href":"https:\/\/in.nau.edu\/arc\/wp-json\/wp\/v2\/media?parent=2311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Starting a screen session<\/h3>\n
\n
\n
\nOR:<\/li>\n
\nctrl<\/kbd>+a<\/kbd>; then release both keys<\/i>; then hit<\/em> d<\/kbd> (The ctrl<\/kbd>+a<\/kbd>, d<\/kbd> sequence detaches from the session. The ctrl<\/kbd>+a<\/kbd> keystroke itself tells screen<\/span> to listen for subsequent key-commands.)<\/li>\n<\/ol>\nReconnecting to a ‘screen’ session<\/h3>\n
\n
\n(e.g.: wind, rain, dtn1, ondemand)<\/li>\n\n
[abc123@wind ~ ]$ screen -ls\r\nThere are screens on:\r\n1144795.pts-0.wind (Detached)\r\n1944762.pts-0.wind (Detached)\r\n2463388.pts-7.wind (Detached)\r\n3 Sockets in \/run\/screen\/S-abc123.<\/code><\/pre>\n[abc123@wind ~ ]$ screen -r 1144795<\/code><\/pre>\n