linux - scp: how to find out that copying was finished -


i'm using scp command copy file 1 linux host another. run scp commend on host1 , copy file host1 host2. file quite big , takes time copy it. on host2 file appears copying started. can file if copying still in progress.

is there reliable way find out if copying finished or not on host2?

off top of head, like:

touch tinyfile scp bigfile tinyfile user@host: 

then when tinyfile appears know transfer of bigfile complete.

as pointed out in comments, assumes scp copy files 1 one, in order specified. if don't trust it, them 1 one explicitly:

scp bigfile user@host: scp tinyfile user@host: 

the disadvantage of approach potentially have authenticate twice. if issue use ssh-agent.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -