How to monitor WGET download progress after closing SSH session












5














I have started downloading my ISO's etc directly to my fileserver using wget. After I close the ssh session, how can I check back on the download process?



Scenario: I start the download, then shut down my computer. The next day I ssh into the server and want to see if the download is still active, complete or has been interupted.










share|improve this question





























    5














    I have started downloading my ISO's etc directly to my fileserver using wget. After I close the ssh session, how can I check back on the download process?



    Scenario: I start the download, then shut down my computer. The next day I ssh into the server and want to see if the download is still active, complete or has been interupted.










    share|improve this question



























      5












      5








      5


      3





      I have started downloading my ISO's etc directly to my fileserver using wget. After I close the ssh session, how can I check back on the download process?



      Scenario: I start the download, then shut down my computer. The next day I ssh into the server and want to see if the download is still active, complete or has been interupted.










      share|improve this question















      I have started downloading my ISO's etc directly to my fileserver using wget. After I close the ssh session, how can I check back on the download process?



      Scenario: I start the download, then shut down my computer. The next day I ssh into the server and want to see if the download is still active, complete or has been interupted.







      ssh wget






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 29 '15 at 23:50









      Gilles

      529k12810601585




      529k12810601585










      asked Dec 29 '15 at 14:21









      Andrew Heath

      171112




      171112






















          4 Answers
          4






          active

          oldest

          votes


















          5














          If you run wget and close the terminal or terminate your ssh session , it will terminate the wget process too. You need to run wget and keep it running even after the session is closed.



          For that purpose there are many tools.



             wget -bqc http://path-to-url/linux.iso


          You will see a PID on screen:



          Continuing in background, pid 12345.



          Where,



          -b : Go to background immediately after startup. If no output file is specified via the -o, output is redirected to wget-log.
          -q : Turn off Wget’s output aka save disk space.
          -c : Resume broken download i.e. continue getting a partially-downloaded file. This is useful when you want to finish up a download started by a previous instance of Wget, or by another program.


          The nohup command



          You can also use the nohup command to execute commands after you exit from a shell prompt. The syntax is:



             $ nohup wget -qc http://path-to-url/linux.iso &

          ## exit from shell or close the terminal ##
          $ exit


          The disown bash command



          Another option is to use the disown command as follows:



                $ wget -qc http://path-to-url/linux.iso &
          [1] 10685
          $ disown wget
          $ ps
          PID TTY TIME CMD
          10685 pts/0 00:00:00 wget
          10687 pts/0 00:00:00 bash
          10708 pts/0 00:00:00 ps
          $ logout


          The screen command



          You can also use the screen command for this purpose.






          share|improve this answer





















          • I don't have the problem of wget halting after closing my ssh session. Until now, I can sudo-monitor the download by viewing the target folder in my file manager and seeing the file size grow. This however, doesn't say whether the download is still in progress (except for refreshing the view and seeing the file size jump) or if the download was interrupted and needs restarting.
            – Andrew Heath
            Dec 29 '15 at 14:44










          • fitnr.com/showing-file-download-progress-using-wget.html
            – Ijaz Ahmad Khan
            Dec 29 '15 at 15:06










          • Yet another way (just for completeness) would be echo 'wget ...' | at 'now + 1 minute' (on systems which run atd – some systemd-based ones don't do that anymore by default). In this way, there is no connection whatever between the download and the calling shell, since the download is started in one minute by the timed execution daemon.
            – Ulrich Schwarz
            Dec 29 '15 at 17:50










          • These look like nice ideas. However they seen to be centred around providing an output that disappears once the terminal window is closed! I am looking to be able to jump back in after a NEW terminal session is started.
            – Andrew Heath
            Dec 30 '15 at 14:36



















          2














          Go to download directory and type



          tail -f wget-log 





          share|improve this answer



















          • 1




            You should specify that this will only work if run in the background without the quiet parameter, but it is not a bad idea.
            – Julie Pelletier
            Aug 23 '16 at 5:44



















          0














          You can also use tmux (which is a bit like screen) but I think is easier to use.



          sudo apt-get install tmux
          tmux new -s <session-name>


          then run you script in the session
          press control + b + d to detach



          when you want to get back the terminal simply do



          tmux a


          The advantage is that you can check back easily if anything has gone wrong but if you want to download lots of simultaneous files, maybe its easier to check the log





          share








          New contributor




          Nic Wanavit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


























            -1














            After a bit of Googling, I found an answer with the discovery an app called Screen.



            After installation on the server (sudo apt-get install screen), you SSH into the server and open a screen session on the server with screen -S SESSION_NAME (replacing SESSION_NAME with any name you like). Then you run WGET and once the download is running, exit the session with CTRL+a, then press d (to detatch from the session. You can run multiple sessions (with different names) at the same time.



            After re-login at a later date, you can check on your processes by SSHing into the server and reopening the screen session on the server with screen -r SESSION_NAME (to reconnect to the session).



            Once the session is finished with, kill it with CTRL+a, then press k (to kill the session).



            It's like having a virtual terminal within your virtual terminal.






            share|improve this answer





















            • The screen has been refereed in first answer as well
              – Ijaz Ahmad Khan
              Jan 26 '16 at 20:58










            • You should award points to those that take time to answer your question, even if you find the answer on your own. That is the ethical code of S.O. and largely what the S.O. economy of points revolve around.
              – Lennart Rolland
              Aug 21 '18 at 12:50











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f252158%2fhow-to-monitor-wget-download-progress-after-closing-ssh-session%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            5














            If you run wget and close the terminal or terminate your ssh session , it will terminate the wget process too. You need to run wget and keep it running even after the session is closed.



            For that purpose there are many tools.



               wget -bqc http://path-to-url/linux.iso


            You will see a PID on screen:



            Continuing in background, pid 12345.



            Where,



            -b : Go to background immediately after startup. If no output file is specified via the -o, output is redirected to wget-log.
            -q : Turn off Wget’s output aka save disk space.
            -c : Resume broken download i.e. continue getting a partially-downloaded file. This is useful when you want to finish up a download started by a previous instance of Wget, or by another program.


            The nohup command



            You can also use the nohup command to execute commands after you exit from a shell prompt. The syntax is:



               $ nohup wget -qc http://path-to-url/linux.iso &

            ## exit from shell or close the terminal ##
            $ exit


            The disown bash command



            Another option is to use the disown command as follows:



                  $ wget -qc http://path-to-url/linux.iso &
            [1] 10685
            $ disown wget
            $ ps
            PID TTY TIME CMD
            10685 pts/0 00:00:00 wget
            10687 pts/0 00:00:00 bash
            10708 pts/0 00:00:00 ps
            $ logout


            The screen command



            You can also use the screen command for this purpose.






            share|improve this answer





















            • I don't have the problem of wget halting after closing my ssh session. Until now, I can sudo-monitor the download by viewing the target folder in my file manager and seeing the file size grow. This however, doesn't say whether the download is still in progress (except for refreshing the view and seeing the file size jump) or if the download was interrupted and needs restarting.
              – Andrew Heath
              Dec 29 '15 at 14:44










            • fitnr.com/showing-file-download-progress-using-wget.html
              – Ijaz Ahmad Khan
              Dec 29 '15 at 15:06










            • Yet another way (just for completeness) would be echo 'wget ...' | at 'now + 1 minute' (on systems which run atd – some systemd-based ones don't do that anymore by default). In this way, there is no connection whatever between the download and the calling shell, since the download is started in one minute by the timed execution daemon.
              – Ulrich Schwarz
              Dec 29 '15 at 17:50










            • These look like nice ideas. However they seen to be centred around providing an output that disappears once the terminal window is closed! I am looking to be able to jump back in after a NEW terminal session is started.
              – Andrew Heath
              Dec 30 '15 at 14:36
















            5














            If you run wget and close the terminal or terminate your ssh session , it will terminate the wget process too. You need to run wget and keep it running even after the session is closed.



            For that purpose there are many tools.



               wget -bqc http://path-to-url/linux.iso


            You will see a PID on screen:



            Continuing in background, pid 12345.



            Where,



            -b : Go to background immediately after startup. If no output file is specified via the -o, output is redirected to wget-log.
            -q : Turn off Wget’s output aka save disk space.
            -c : Resume broken download i.e. continue getting a partially-downloaded file. This is useful when you want to finish up a download started by a previous instance of Wget, or by another program.


            The nohup command



            You can also use the nohup command to execute commands after you exit from a shell prompt. The syntax is:



               $ nohup wget -qc http://path-to-url/linux.iso &

            ## exit from shell or close the terminal ##
            $ exit


            The disown bash command



            Another option is to use the disown command as follows:



                  $ wget -qc http://path-to-url/linux.iso &
            [1] 10685
            $ disown wget
            $ ps
            PID TTY TIME CMD
            10685 pts/0 00:00:00 wget
            10687 pts/0 00:00:00 bash
            10708 pts/0 00:00:00 ps
            $ logout


            The screen command



            You can also use the screen command for this purpose.






            share|improve this answer





















            • I don't have the problem of wget halting after closing my ssh session. Until now, I can sudo-monitor the download by viewing the target folder in my file manager and seeing the file size grow. This however, doesn't say whether the download is still in progress (except for refreshing the view and seeing the file size jump) or if the download was interrupted and needs restarting.
              – Andrew Heath
              Dec 29 '15 at 14:44










            • fitnr.com/showing-file-download-progress-using-wget.html
              – Ijaz Ahmad Khan
              Dec 29 '15 at 15:06










            • Yet another way (just for completeness) would be echo 'wget ...' | at 'now + 1 minute' (on systems which run atd – some systemd-based ones don't do that anymore by default). In this way, there is no connection whatever between the download and the calling shell, since the download is started in one minute by the timed execution daemon.
              – Ulrich Schwarz
              Dec 29 '15 at 17:50










            • These look like nice ideas. However they seen to be centred around providing an output that disappears once the terminal window is closed! I am looking to be able to jump back in after a NEW terminal session is started.
              – Andrew Heath
              Dec 30 '15 at 14:36














            5












            5








            5






            If you run wget and close the terminal or terminate your ssh session , it will terminate the wget process too. You need to run wget and keep it running even after the session is closed.



            For that purpose there are many tools.



               wget -bqc http://path-to-url/linux.iso


            You will see a PID on screen:



            Continuing in background, pid 12345.



            Where,



            -b : Go to background immediately after startup. If no output file is specified via the -o, output is redirected to wget-log.
            -q : Turn off Wget’s output aka save disk space.
            -c : Resume broken download i.e. continue getting a partially-downloaded file. This is useful when you want to finish up a download started by a previous instance of Wget, or by another program.


            The nohup command



            You can also use the nohup command to execute commands after you exit from a shell prompt. The syntax is:



               $ nohup wget -qc http://path-to-url/linux.iso &

            ## exit from shell or close the terminal ##
            $ exit


            The disown bash command



            Another option is to use the disown command as follows:



                  $ wget -qc http://path-to-url/linux.iso &
            [1] 10685
            $ disown wget
            $ ps
            PID TTY TIME CMD
            10685 pts/0 00:00:00 wget
            10687 pts/0 00:00:00 bash
            10708 pts/0 00:00:00 ps
            $ logout


            The screen command



            You can also use the screen command for this purpose.






            share|improve this answer












            If you run wget and close the terminal or terminate your ssh session , it will terminate the wget process too. You need to run wget and keep it running even after the session is closed.



            For that purpose there are many tools.



               wget -bqc http://path-to-url/linux.iso


            You will see a PID on screen:



            Continuing in background, pid 12345.



            Where,



            -b : Go to background immediately after startup. If no output file is specified via the -o, output is redirected to wget-log.
            -q : Turn off Wget’s output aka save disk space.
            -c : Resume broken download i.e. continue getting a partially-downloaded file. This is useful when you want to finish up a download started by a previous instance of Wget, or by another program.


            The nohup command



            You can also use the nohup command to execute commands after you exit from a shell prompt. The syntax is:



               $ nohup wget -qc http://path-to-url/linux.iso &

            ## exit from shell or close the terminal ##
            $ exit


            The disown bash command



            Another option is to use the disown command as follows:



                  $ wget -qc http://path-to-url/linux.iso &
            [1] 10685
            $ disown wget
            $ ps
            PID TTY TIME CMD
            10685 pts/0 00:00:00 wget
            10687 pts/0 00:00:00 bash
            10708 pts/0 00:00:00 ps
            $ logout


            The screen command



            You can also use the screen command for this purpose.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 29 '15 at 14:36









            Ijaz Ahmad Khan

            3,41431434




            3,41431434












            • I don't have the problem of wget halting after closing my ssh session. Until now, I can sudo-monitor the download by viewing the target folder in my file manager and seeing the file size grow. This however, doesn't say whether the download is still in progress (except for refreshing the view and seeing the file size jump) or if the download was interrupted and needs restarting.
              – Andrew Heath
              Dec 29 '15 at 14:44










            • fitnr.com/showing-file-download-progress-using-wget.html
              – Ijaz Ahmad Khan
              Dec 29 '15 at 15:06










            • Yet another way (just for completeness) would be echo 'wget ...' | at 'now + 1 minute' (on systems which run atd – some systemd-based ones don't do that anymore by default). In this way, there is no connection whatever between the download and the calling shell, since the download is started in one minute by the timed execution daemon.
              – Ulrich Schwarz
              Dec 29 '15 at 17:50










            • These look like nice ideas. However they seen to be centred around providing an output that disappears once the terminal window is closed! I am looking to be able to jump back in after a NEW terminal session is started.
              – Andrew Heath
              Dec 30 '15 at 14:36


















            • I don't have the problem of wget halting after closing my ssh session. Until now, I can sudo-monitor the download by viewing the target folder in my file manager and seeing the file size grow. This however, doesn't say whether the download is still in progress (except for refreshing the view and seeing the file size jump) or if the download was interrupted and needs restarting.
              – Andrew Heath
              Dec 29 '15 at 14:44










            • fitnr.com/showing-file-download-progress-using-wget.html
              – Ijaz Ahmad Khan
              Dec 29 '15 at 15:06










            • Yet another way (just for completeness) would be echo 'wget ...' | at 'now + 1 minute' (on systems which run atd – some systemd-based ones don't do that anymore by default). In this way, there is no connection whatever between the download and the calling shell, since the download is started in one minute by the timed execution daemon.
              – Ulrich Schwarz
              Dec 29 '15 at 17:50










            • These look like nice ideas. However they seen to be centred around providing an output that disappears once the terminal window is closed! I am looking to be able to jump back in after a NEW terminal session is started.
              – Andrew Heath
              Dec 30 '15 at 14:36
















            I don't have the problem of wget halting after closing my ssh session. Until now, I can sudo-monitor the download by viewing the target folder in my file manager and seeing the file size grow. This however, doesn't say whether the download is still in progress (except for refreshing the view and seeing the file size jump) or if the download was interrupted and needs restarting.
            – Andrew Heath
            Dec 29 '15 at 14:44




            I don't have the problem of wget halting after closing my ssh session. Until now, I can sudo-monitor the download by viewing the target folder in my file manager and seeing the file size grow. This however, doesn't say whether the download is still in progress (except for refreshing the view and seeing the file size jump) or if the download was interrupted and needs restarting.
            – Andrew Heath
            Dec 29 '15 at 14:44












            fitnr.com/showing-file-download-progress-using-wget.html
            – Ijaz Ahmad Khan
            Dec 29 '15 at 15:06




            fitnr.com/showing-file-download-progress-using-wget.html
            – Ijaz Ahmad Khan
            Dec 29 '15 at 15:06












            Yet another way (just for completeness) would be echo 'wget ...' | at 'now + 1 minute' (on systems which run atd – some systemd-based ones don't do that anymore by default). In this way, there is no connection whatever between the download and the calling shell, since the download is started in one minute by the timed execution daemon.
            – Ulrich Schwarz
            Dec 29 '15 at 17:50




            Yet another way (just for completeness) would be echo 'wget ...' | at 'now + 1 minute' (on systems which run atd – some systemd-based ones don't do that anymore by default). In this way, there is no connection whatever between the download and the calling shell, since the download is started in one minute by the timed execution daemon.
            – Ulrich Schwarz
            Dec 29 '15 at 17:50












            These look like nice ideas. However they seen to be centred around providing an output that disappears once the terminal window is closed! I am looking to be able to jump back in after a NEW terminal session is started.
            – Andrew Heath
            Dec 30 '15 at 14:36




            These look like nice ideas. However they seen to be centred around providing an output that disappears once the terminal window is closed! I am looking to be able to jump back in after a NEW terminal session is started.
            – Andrew Heath
            Dec 30 '15 at 14:36













            2














            Go to download directory and type



            tail -f wget-log 





            share|improve this answer



















            • 1




              You should specify that this will only work if run in the background without the quiet parameter, but it is not a bad idea.
              – Julie Pelletier
              Aug 23 '16 at 5:44
















            2














            Go to download directory and type



            tail -f wget-log 





            share|improve this answer



















            • 1




              You should specify that this will only work if run in the background without the quiet parameter, but it is not a bad idea.
              – Julie Pelletier
              Aug 23 '16 at 5:44














            2












            2








            2






            Go to download directory and type



            tail -f wget-log 





            share|improve this answer














            Go to download directory and type



            tail -f wget-log 






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Aug 23 '16 at 6:32









            Archemar

            19.6k93570




            19.6k93570










            answered Aug 23 '16 at 5:26









            Joker Kyaw

            212




            212








            • 1




              You should specify that this will only work if run in the background without the quiet parameter, but it is not a bad idea.
              – Julie Pelletier
              Aug 23 '16 at 5:44














            • 1




              You should specify that this will only work if run in the background without the quiet parameter, but it is not a bad idea.
              – Julie Pelletier
              Aug 23 '16 at 5:44








            1




            1




            You should specify that this will only work if run in the background without the quiet parameter, but it is not a bad idea.
            – Julie Pelletier
            Aug 23 '16 at 5:44




            You should specify that this will only work if run in the background without the quiet parameter, but it is not a bad idea.
            – Julie Pelletier
            Aug 23 '16 at 5:44











            0














            You can also use tmux (which is a bit like screen) but I think is easier to use.



            sudo apt-get install tmux
            tmux new -s <session-name>


            then run you script in the session
            press control + b + d to detach



            when you want to get back the terminal simply do



            tmux a


            The advantage is that you can check back easily if anything has gone wrong but if you want to download lots of simultaneous files, maybe its easier to check the log





            share








            New contributor




            Nic Wanavit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.























              0














              You can also use tmux (which is a bit like screen) but I think is easier to use.



              sudo apt-get install tmux
              tmux new -s <session-name>


              then run you script in the session
              press control + b + d to detach



              when you want to get back the terminal simply do



              tmux a


              The advantage is that you can check back easily if anything has gone wrong but if you want to download lots of simultaneous files, maybe its easier to check the log





              share








              New contributor




              Nic Wanavit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.





















                0












                0








                0






                You can also use tmux (which is a bit like screen) but I think is easier to use.



                sudo apt-get install tmux
                tmux new -s <session-name>


                then run you script in the session
                press control + b + d to detach



                when you want to get back the terminal simply do



                tmux a


                The advantage is that you can check back easily if anything has gone wrong but if you want to download lots of simultaneous files, maybe its easier to check the log





                share








                New contributor




                Nic Wanavit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                You can also use tmux (which is a bit like screen) but I think is easier to use.



                sudo apt-get install tmux
                tmux new -s <session-name>


                then run you script in the session
                press control + b + d to detach



                when you want to get back the terminal simply do



                tmux a


                The advantage is that you can check back easily if anything has gone wrong but if you want to download lots of simultaneous files, maybe its easier to check the log






                share








                New contributor




                Nic Wanavit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                share


                share






                New contributor




                Nic Wanavit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 8 mins ago









                Nic Wanavit

                1




                1




                New contributor




                Nic Wanavit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Nic Wanavit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Nic Wanavit is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                    -1














                    After a bit of Googling, I found an answer with the discovery an app called Screen.



                    After installation on the server (sudo apt-get install screen), you SSH into the server and open a screen session on the server with screen -S SESSION_NAME (replacing SESSION_NAME with any name you like). Then you run WGET and once the download is running, exit the session with CTRL+a, then press d (to detatch from the session. You can run multiple sessions (with different names) at the same time.



                    After re-login at a later date, you can check on your processes by SSHing into the server and reopening the screen session on the server with screen -r SESSION_NAME (to reconnect to the session).



                    Once the session is finished with, kill it with CTRL+a, then press k (to kill the session).



                    It's like having a virtual terminal within your virtual terminal.






                    share|improve this answer





















                    • The screen has been refereed in first answer as well
                      – Ijaz Ahmad Khan
                      Jan 26 '16 at 20:58










                    • You should award points to those that take time to answer your question, even if you find the answer on your own. That is the ethical code of S.O. and largely what the S.O. economy of points revolve around.
                      – Lennart Rolland
                      Aug 21 '18 at 12:50
















                    -1














                    After a bit of Googling, I found an answer with the discovery an app called Screen.



                    After installation on the server (sudo apt-get install screen), you SSH into the server and open a screen session on the server with screen -S SESSION_NAME (replacing SESSION_NAME with any name you like). Then you run WGET and once the download is running, exit the session with CTRL+a, then press d (to detatch from the session. You can run multiple sessions (with different names) at the same time.



                    After re-login at a later date, you can check on your processes by SSHing into the server and reopening the screen session on the server with screen -r SESSION_NAME (to reconnect to the session).



                    Once the session is finished with, kill it with CTRL+a, then press k (to kill the session).



                    It's like having a virtual terminal within your virtual terminal.






                    share|improve this answer





















                    • The screen has been refereed in first answer as well
                      – Ijaz Ahmad Khan
                      Jan 26 '16 at 20:58










                    • You should award points to those that take time to answer your question, even if you find the answer on your own. That is the ethical code of S.O. and largely what the S.O. economy of points revolve around.
                      – Lennart Rolland
                      Aug 21 '18 at 12:50














                    -1












                    -1








                    -1






                    After a bit of Googling, I found an answer with the discovery an app called Screen.



                    After installation on the server (sudo apt-get install screen), you SSH into the server and open a screen session on the server with screen -S SESSION_NAME (replacing SESSION_NAME with any name you like). Then you run WGET and once the download is running, exit the session with CTRL+a, then press d (to detatch from the session. You can run multiple sessions (with different names) at the same time.



                    After re-login at a later date, you can check on your processes by SSHing into the server and reopening the screen session on the server with screen -r SESSION_NAME (to reconnect to the session).



                    Once the session is finished with, kill it with CTRL+a, then press k (to kill the session).



                    It's like having a virtual terminal within your virtual terminal.






                    share|improve this answer












                    After a bit of Googling, I found an answer with the discovery an app called Screen.



                    After installation on the server (sudo apt-get install screen), you SSH into the server and open a screen session on the server with screen -S SESSION_NAME (replacing SESSION_NAME with any name you like). Then you run WGET and once the download is running, exit the session with CTRL+a, then press d (to detatch from the session. You can run multiple sessions (with different names) at the same time.



                    After re-login at a later date, you can check on your processes by SSHing into the server and reopening the screen session on the server with screen -r SESSION_NAME (to reconnect to the session).



                    Once the session is finished with, kill it with CTRL+a, then press k (to kill the session).



                    It's like having a virtual terminal within your virtual terminal.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 14 '16 at 14:53









                    Andrew Heath

                    171112




                    171112












                    • The screen has been refereed in first answer as well
                      – Ijaz Ahmad Khan
                      Jan 26 '16 at 20:58










                    • You should award points to those that take time to answer your question, even if you find the answer on your own. That is the ethical code of S.O. and largely what the S.O. economy of points revolve around.
                      – Lennart Rolland
                      Aug 21 '18 at 12:50


















                    • The screen has been refereed in first answer as well
                      – Ijaz Ahmad Khan
                      Jan 26 '16 at 20:58










                    • You should award points to those that take time to answer your question, even if you find the answer on your own. That is the ethical code of S.O. and largely what the S.O. economy of points revolve around.
                      – Lennart Rolland
                      Aug 21 '18 at 12:50
















                    The screen has been refereed in first answer as well
                    – Ijaz Ahmad Khan
                    Jan 26 '16 at 20:58




                    The screen has been refereed in first answer as well
                    – Ijaz Ahmad Khan
                    Jan 26 '16 at 20:58












                    You should award points to those that take time to answer your question, even if you find the answer on your own. That is the ethical code of S.O. and largely what the S.O. economy of points revolve around.
                    – Lennart Rolland
                    Aug 21 '18 at 12:50




                    You should award points to those that take time to answer your question, even if you find the answer on your own. That is the ethical code of S.O. and largely what the S.O. economy of points revolve around.
                    – Lennart Rolland
                    Aug 21 '18 at 12:50


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f252158%2fhow-to-monitor-wget-download-progress-after-closing-ssh-session%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt