Hi I have a remote machine that has a mounted network drive.
I am trying to create a script that ask me for the name of folder I wish to copy, ssh into the remote machine and have it start the copy operation.
parallel/concurrent copy is needed as I have a time constraint.
here is what i have for now in my script in "perl" if it matters....
print `ssh -t -x rocup@factory "cp -rf $folder1/ /NFS; cp -rf $folder2/ /NFS; cp -rf $folder3/ /NFS"';
I also tried
print `ssh -t -x rocup@factory "cp -rf $folder1/ /NFS & cp -rf $folder2/ /NFS & cp -rf $folder3/ /NFS &"';
and
print `ssh -t -x rocup@factory "nohup cp -rf $folder1/ /NFS;nohup cp -rf $folder2/ /NFS;nohup cp -rf $folder3/ /NFS"';
the above operations copy one by one and it takes over an hour to do it, Im hoping that I can trim down the time a bit by doing a concurrent copy
the host factory does not have private/public key setup, so i cannot do a
ssh -f -t -x rocup@factory "cp -rf $folder1/ /NFS"; as I would need to enter password 3 times.
Thanks for helping