336 reputation
212
bio website
location
age
visits member for 1 year, 8 months
seen 6 hours ago

7h
comment How to copy three files at once instead of one file at a time in bash shell scripting?
Thanks. I already know that I can use & but how do I use & in my above example in such a way such that I can download three files at once? That's my question as it is causing me lot of confusion.. My background is not from shell scripting so having little bit of problem. If you can provide an example basis on my question then it will be of great help to me.
9h
asked How to copy three files at once instead of one file at a time in bash shell scripting?
Apr
16
awarded  Tumbleweed
Apr
15
awarded  Popular Question
Apr
9
asked How to use UPSTART feature of ubuntu to restart the python script but not as root?
Mar
31
awarded  Popular Question
Mar
26
awarded  Notable Question
Mar
25
accepted How to parallelize the for loop while scp the files?
Mar
22
comment How to use rsync or scp to efficiently copy the files from machineB and machineC to machineA?
One thing I would like to understand - In your solution, it will copy files from machineB by using primary_files so whatever files which is coming from primary_files are there in machineB, it will copy that files, but from machineC, it will copy the remaining files which was not copied from machineB in your next command? Right? And then same thing for secondary? It's not overwriting anything given the fact, machineB and machine have unique set of files.
Mar
22
accepted Not able to copy multiple files using rsync 3.0.9 version?
Mar
22
comment How to use rsync or scp to efficiently copy the files from machineB and machineC to machineA?
I got this working.. :) Thanks for the help. I have started a run now. Do you think it will be faster as compared to my original solution?
Mar
22
accepted How to use rsync or scp to efficiently copy the files from machineB and machineC to machineA?
Mar
22
comment Not able to copy multiple files using rsync 3.0.9 version?
Thanks. Now I can see file getting copied. One quick question - I am using these two lines in my shell script rsync -avz david@${FILERS_LOCATION[0]}${primary_files} $PRIMARY/ rsync -avz david@${FILERS_LOCATION[1]}${primary_files} $PRIMARY/ . Suppose if the file is not there in machineB then it will be copying the files from machineC in my script?. Am I correct?
Mar
21
comment Not able to copy multiple files using rsync 3.0.9 version?
I just tried your suggestion and when this line got printed out echo "Primary: ${primary_files[@]}" it is missing the file number and other number after 1680. For example this is what it is getting printed out - /data/pe_t1_snapshot/20140320/t1_weekly_1680_.data. It is missing lot of numbers after 1680.
Mar
21
comment Not able to copy multiple files using rsync 3.0.9 version?
Any thoughts what is going on?
Mar
21
revised Not able to copy multiple files using rsync 3.0.9 version?
added 42 characters in body
Mar
21
revised Not able to copy multiple files using rsync 3.0.9 version?
added 189 characters in body
Mar
21
comment Not able to copy multiple files using rsync 3.0.9 version?
Thanks for your suggestion. Yeah it worked fine with your suggestion if I run it directly on the console with that single command but I need to run that from my shell script and if I use your suggestion, it is giving an error if I run it from shell script. I have updated my question with the shell script and what I am doing.
Mar
21
revised Not able to copy multiple files using rsync 3.0.9 version?
added 2481 characters in body
Mar
21
asked Not able to copy multiple files using rsync 3.0.9 version?