scp is looping without being in a loop
Hello,
I'm trying to execute some fairly simple code to transfer some files from one server to another.
$ cat xfer_directory.sh
#!/bin/bash
cd /cygdrive/g/directory/usr
rm -Rf /cygdrive/g/directory/usr/*
cd /cygdrive/g/directory/var
rm -Rf /cygdrive/g/directory/var/*
# scp -r -C -c blowfish root@10.0.0.9:/var/ .
cd /cygdrive/g/directory/usr
scp -r -C -c blowfish root@10.0.0.9:/usr/ .
As you can see there are no obvious loops. Yet the transfer never gets to the second scp statement. It hits a particular subdirectory of /usr and continues to transfer that subdirectory and its' contents until I break out of the seemingly looped condition.
Neither of the primary directories nor the subdirectories are symbolic links. I'm at a loss for why this simple script keeps looping without any looping statements in the script.
I'm sure it's something simple I'm just not able to see. Any help/comments would be gratefully appreciated.
Thanks!
Blaine
|