See scp progress from another machine

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












Assume I'm scping a large file (300GB) from the corporate server to my workplace machine which I don't have ANY access to during the weekend (firewall blocks ssh to machines inside the office network); hence I can't just connect to it and see the progress. Now is there anyway for me to see the progress of that scp job when I ssh into the server with the same account from my home machine?
This is of course not really useful but I'm curios anyway.







share|improve this question
























    up vote
    2
    down vote

    favorite
    1












    Assume I'm scping a large file (300GB) from the corporate server to my workplace machine which I don't have ANY access to during the weekend (firewall blocks ssh to machines inside the office network); hence I can't just connect to it and see the progress. Now is there anyway for me to see the progress of that scp job when I ssh into the server with the same account from my home machine?
    This is of course not really useful but I'm curios anyway.







    share|improve this question






















      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      Assume I'm scping a large file (300GB) from the corporate server to my workplace machine which I don't have ANY access to during the weekend (firewall blocks ssh to machines inside the office network); hence I can't just connect to it and see the progress. Now is there anyway for me to see the progress of that scp job when I ssh into the server with the same account from my home machine?
      This is of course not really useful but I'm curios anyway.







      share|improve this question












      Assume I'm scping a large file (300GB) from the corporate server to my workplace machine which I don't have ANY access to during the weekend (firewall blocks ssh to machines inside the office network); hence I can't just connect to it and see the progress. Now is there anyway for me to see the progress of that scp job when I ssh into the server with the same account from my home machine?
      This is of course not really useful but I'm curios anyway.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '17 at 3:35









      DarthPaghius

      20719




      20719




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          You can use lsof to list information on the current files opened by the scp process on the server. Find its process id with pidof scp, for example, then use lsof -p on that pid. You will also need option -o to show the current offset within the file being read by scp. Eg



          $ pidof scp
          29273

          $ lsof -op 29273
          COMMAND PID USER FD TYPE DEVICE OFFSET NODE NAME
          scp 29273 meuh cwd DIR 179,2 273367 /home/meuh
          scp 29273 meuh rtd DIR 179,2 2 /
          scp 29273 meuh txt REG 179,2 260817 /usr/bin/scp
          ...
          scp 29273 meuh 0r FIFO 0,10 0t0 3005108 pipe
          scp 29273 meuh 1w FIFO 0,10 0t0 3005109 pipe
          scp 29273 meuh 2w FIFO 0,10 0t0 3005110 pipe
          scp 29273 meuh 3r REG 179,2 0t2834432 530 /home/meuh/x


          The last line shows file descriptor 3 is ready to read from offset 2834432 of file /home/meuh/x. You could use watch to repeat the command and see the changes.






          share|improve this answer




















          • Not as user friendly as I would have wanted it to be, mainly because it outputs a hex value and not a human-friendly one but I guess that's it anyway. Thanks!
            – DarthPaghius
            Nov 25 '17 at 17:59










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f403980%2fsee-scp-progress-from-another-machine%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          You can use lsof to list information on the current files opened by the scp process on the server. Find its process id with pidof scp, for example, then use lsof -p on that pid. You will also need option -o to show the current offset within the file being read by scp. Eg



          $ pidof scp
          29273

          $ lsof -op 29273
          COMMAND PID USER FD TYPE DEVICE OFFSET NODE NAME
          scp 29273 meuh cwd DIR 179,2 273367 /home/meuh
          scp 29273 meuh rtd DIR 179,2 2 /
          scp 29273 meuh txt REG 179,2 260817 /usr/bin/scp
          ...
          scp 29273 meuh 0r FIFO 0,10 0t0 3005108 pipe
          scp 29273 meuh 1w FIFO 0,10 0t0 3005109 pipe
          scp 29273 meuh 2w FIFO 0,10 0t0 3005110 pipe
          scp 29273 meuh 3r REG 179,2 0t2834432 530 /home/meuh/x


          The last line shows file descriptor 3 is ready to read from offset 2834432 of file /home/meuh/x. You could use watch to repeat the command and see the changes.






          share|improve this answer




















          • Not as user friendly as I would have wanted it to be, mainly because it outputs a hex value and not a human-friendly one but I guess that's it anyway. Thanks!
            – DarthPaghius
            Nov 25 '17 at 17:59














          up vote
          1
          down vote



          accepted










          You can use lsof to list information on the current files opened by the scp process on the server. Find its process id with pidof scp, for example, then use lsof -p on that pid. You will also need option -o to show the current offset within the file being read by scp. Eg



          $ pidof scp
          29273

          $ lsof -op 29273
          COMMAND PID USER FD TYPE DEVICE OFFSET NODE NAME
          scp 29273 meuh cwd DIR 179,2 273367 /home/meuh
          scp 29273 meuh rtd DIR 179,2 2 /
          scp 29273 meuh txt REG 179,2 260817 /usr/bin/scp
          ...
          scp 29273 meuh 0r FIFO 0,10 0t0 3005108 pipe
          scp 29273 meuh 1w FIFO 0,10 0t0 3005109 pipe
          scp 29273 meuh 2w FIFO 0,10 0t0 3005110 pipe
          scp 29273 meuh 3r REG 179,2 0t2834432 530 /home/meuh/x


          The last line shows file descriptor 3 is ready to read from offset 2834432 of file /home/meuh/x. You could use watch to repeat the command and see the changes.






          share|improve this answer




















          • Not as user friendly as I would have wanted it to be, mainly because it outputs a hex value and not a human-friendly one but I guess that's it anyway. Thanks!
            – DarthPaghius
            Nov 25 '17 at 17:59












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          You can use lsof to list information on the current files opened by the scp process on the server. Find its process id with pidof scp, for example, then use lsof -p on that pid. You will also need option -o to show the current offset within the file being read by scp. Eg



          $ pidof scp
          29273

          $ lsof -op 29273
          COMMAND PID USER FD TYPE DEVICE OFFSET NODE NAME
          scp 29273 meuh cwd DIR 179,2 273367 /home/meuh
          scp 29273 meuh rtd DIR 179,2 2 /
          scp 29273 meuh txt REG 179,2 260817 /usr/bin/scp
          ...
          scp 29273 meuh 0r FIFO 0,10 0t0 3005108 pipe
          scp 29273 meuh 1w FIFO 0,10 0t0 3005109 pipe
          scp 29273 meuh 2w FIFO 0,10 0t0 3005110 pipe
          scp 29273 meuh 3r REG 179,2 0t2834432 530 /home/meuh/x


          The last line shows file descriptor 3 is ready to read from offset 2834432 of file /home/meuh/x. You could use watch to repeat the command and see the changes.






          share|improve this answer












          You can use lsof to list information on the current files opened by the scp process on the server. Find its process id with pidof scp, for example, then use lsof -p on that pid. You will also need option -o to show the current offset within the file being read by scp. Eg



          $ pidof scp
          29273

          $ lsof -op 29273
          COMMAND PID USER FD TYPE DEVICE OFFSET NODE NAME
          scp 29273 meuh cwd DIR 179,2 273367 /home/meuh
          scp 29273 meuh rtd DIR 179,2 2 /
          scp 29273 meuh txt REG 179,2 260817 /usr/bin/scp
          ...
          scp 29273 meuh 0r FIFO 0,10 0t0 3005108 pipe
          scp 29273 meuh 1w FIFO 0,10 0t0 3005109 pipe
          scp 29273 meuh 2w FIFO 0,10 0t0 3005110 pipe
          scp 29273 meuh 3r REG 179,2 0t2834432 530 /home/meuh/x


          The last line shows file descriptor 3 is ready to read from offset 2834432 of file /home/meuh/x. You could use watch to repeat the command and see the changes.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 12 '17 at 10:03









          meuh

          29.6k11751




          29.6k11751











          • Not as user friendly as I would have wanted it to be, mainly because it outputs a hex value and not a human-friendly one but I guess that's it anyway. Thanks!
            – DarthPaghius
            Nov 25 '17 at 17:59
















          • Not as user friendly as I would have wanted it to be, mainly because it outputs a hex value and not a human-friendly one but I guess that's it anyway. Thanks!
            – DarthPaghius
            Nov 25 '17 at 17:59















          Not as user friendly as I would have wanted it to be, mainly because it outputs a hex value and not a human-friendly one but I guess that's it anyway. Thanks!
          – DarthPaghius
          Nov 25 '17 at 17:59




          Not as user friendly as I would have wanted it to be, mainly because it outputs a hex value and not a human-friendly one but I guess that's it anyway. Thanks!
          – DarthPaghius
          Nov 25 '17 at 17:59

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403980%2fsee-scp-progress-from-another-machine%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay