Re: Strange problem with rsync and expect

2015-06-16 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, you are doing something wrong. You are using expect to allow a password to be specified on the command line. Use ssh key authentication instead. Now, as to your problem I couldn't duplicate it. I started an rsync of a large file, ^Z suspended

Strange problem with rsync and expect

2015-06-15 Thread Guangmu Zhu
Version: 3.0.6OS: CentOS 6.6 I met a strange problem when using rsync with expect. I wrote a script backing up using rsync and expect. However when I run the script twice for two different files at same time, the two files on destination path would be deleted automatically before the files cl